- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 07:28 AM
Hi All,
I'm trying to populate a read only field with today's date in the format of "28-May-2014" but notice that i cannot use any .gs functions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 08:13 AM
Hi Alex,
You refer to the below wiki link.
Set Current DateTime In Field - ServiceNow Wiki
Thanks,
Avneet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 08:36 AM
Hi Alex,
you have to write a script include to get the current date time using gs.nowDateTime() function and make asynchronous ajax call in the client script. Use this script include in all processes in future also.
Please mark answer as correct/helpful, if it was helpful
Regards,
Solutioner
Enhance Knowledge NOW@ www.solutioningnow.com
http://www.solutioningnow.com/