Using in-line Javascript, a field in one of my models is returning a “Date” type field from Salesforce using getField on the model. When I display the field using an Alert, Javascript tells me its an object Object. On the Skuid page, the field is rendered at a datepicker. I want to use the date field in a calculation against the current date using javascript in order to perform some actions. I don’t want to display the date in the Skuid page. Problem is, how do I get the date out of the date object using Javascript? I’ve tried many ways, including skuid.time.parseSFDate and nothing is working.
Page 1 / 1
This code has always successfully parsed a salesforce date into a javascript date:
jsdate = skuid.time.parseSFDate(SFdateField);
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.