To convert a JavaScript Date object into UTC format string, you can simply use FormatUtcDate:
var date = new Date(); FormatUtcDate(date);
To convert an XML date string to a JavaScript Date object, you can use ParseDate function, which is the function that I used in my CRM JavaScript Service Helper:
ParseDate(str);
CRM platform is supposed to translate the string correctly based on the user’s timezone settings.
No comments:
Post a Comment