Hi -
I have a datetime field in which I'm using in a JavaScript function:
function getDate()
{
valu :- /Date(1509696000000)/ get crm datetime field Fri Nov 03 2017 13:30:00 GMT+0530
var date =
eval('new ' +
value.replace("/", "").replace("/", ""));
return date.format('yyyy-MM-dd hh:mm:ss tt');
alert (date)
}
The alert displays the the format of the field as this: date = 11/4/2017 1:30 PM
I need to reformat the result to show as this same value time(11/4/2017 8:00 AM) but current I got value (11/4/2017 1:30 PM) I think (plus + 5.30 hour add), so I can use it in a further part of the function.
Does anyone know how to do this in the JavaScript function?
Thanks,
*This post is locked for comments