I set this var
var InstallYear=InstallDate.getFullYear();
and I get this error
getFullYear() is not a function
what is the correct function to get the year from a date/time field?
Page 1 / 1
Do you need to do this in Javascript?
You could create UI Only field and use the “Year” function.
If you need to hang out in Javascript - you will probably need to convert the SF date to a JS date. Look for the skuid utility API: parseSFDate( sfDate )
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.