Notifications
Announcements
No record found.
i need add time conversion from utc to local time(Ist)
*This post is locked for comments
You can set the time conversion on the field level in the customization to user local.
technet.microsoft.com/.../dn946904.aspx
i dnt want to change my time in crm. as it is in utc now it should convert into IST. it should work on javscript code. is that possible
Hi Sandeep, You can Use ToLocalTime() Option for Conversion
For Ex:
var date = DateTime.UtcNow;
var localdate = date.ToLocalTime();
Hope it helps you
Thanks
Hi sandeep,
Do you want this using Javascript?
yes
You can do one thing.
Lets say you are getting UTC Date for Createdon, Then
You can use following lines
var CreatedOn=Xrm.Page.getAttribute("createdon").getValue();
var LocalDate=new Date(CreatedOn+ "UTC")
Local Date will give current Date and Time (IST)
Hope it will helps you.
Thanks.
getting and field :window error.
Can you please attach screenshot for this error.? And did you get UTC Date? How you are retrieving UTC Date?
created on : utc time.. it should show same utc time.. but its sHowing IST
Can you please try to debug and tell me in which line it is giving error?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2