We are tying to upgrade our Java codebase to use the latest Java time classes, but I found the SmartClient toJS() function doesn't create a javascript date object. Do the newer versions of SmartClient support this? We are currently running v9.1p_2016-08-30/Pro Development Only (built 2016-08-30).
Using Java.util.Date:
Using Java.time.LocalDateTime:
Using Java.util.Date:
Code:
completedDate: new Date(1516057395000)
Code:
completedDate:{
dayOfWeek:"FRIDAY",
hour:16,
month:"FEBRUARY",
dayOfMonth:23,
dayOfYear:54,
year:2018,
monthValue:2,
nano:0,
minute:2,
second:47
}
Comment