I have a date field in CRM (Agreement Date) if some users in East Coast enter a date to this field and I opened it in Pacific Time Zone (Seattle) there is one day difference. They entered agreement data as 1/1/1014 EST but I am seeing it at 12/31/2013 PST. Is there a java script to make this time difference to look same for all user when they open this account record?
FYI: new_agreementdate is Data and Time type with Date only Format on account record
I use the following code but it doesn’t work….. Any idea?
function Form_Create()
{
var oDate;
oDate = Xrm.Page.getAttribute("new_agreementdate").getValue() ;
if (oDate != null) {
oDate = new Date(oDate);
oDate = oDate.setHours(12,0,0);
}}
Thanks,