Populate the custom date/time field in EST/EDT

Hemanth Naik
Tera Guru

Hello Everyone,

 

In my change form, I have created custom planned start date (EST) and planned end date (EST) fields under Planned start and Planned end Date fields, now the requirement is whenever any user selects planned start and end date in their time zone, I need to convert those time into EST/EDT and auto populate in my custom fields. so can someone help me with how to write on change client script for this.

 

Thanks & regards'

Hemanth.

 

1 ACCEPTED SOLUTION

Hemanth Naik
Tera Guru

Hello Everyone, i have found same workaround in community 

Solved: show calendar date/time fields in EST - ServiceNow Community

Thankyou @Zach Koch, and @Amit Pandey for your valuable responses, 

Thanks,

Hemanth

View solution in original post

8 REPLIES 8

Zach Koch
Giga Sage
Giga Sage

This thread may be helpful

Need to convert Date field to populate only in EST 

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

Hello @Zach Koch ,

Thanks for your valuable response,

In the link you provided in script include for source time zone it is only used GMT, but i need to handle all time zones, can you please help me on this

 

Thanks & regards,

Hemanth Naik.

Hi @Hemanth Naik 

 

You can refer to my reply on this blog. This BR helps in converting the time in different timezones-

 

https://www.servicenow.com/community/developer-articles/handling-time-zones-in-servicenow-timezoneut...

 

Please mark my answer helpful and correct.

 

Regards,

Amit

Hi @Amit Pandey , I have went through document and used the script include client callable but it does not work.

Thanks & regards,

Hemanth