Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Display date another format

DevYadav
Tera Contributor

Hi All,
Good Day!!!!
there is a variable name "date" [u_date] in catalog item. It is showing format as [yyyy--mm-dd].
I want to change it's format from above to January 8th,2023.

DevYadav_0-1689877039436.png

thanks in advance

2 REPLIES 2

DrewW
Mega Sage

Date formats are a function of default system settings and users settings.

So you have a few options

1 - Create a custom Service Portal or UI Macro that does all the stuff you want and displays it in for formatting you would like.

2 - Add a second field/Variable that is set and displays the date in the format that you would like.

https://www.servicenow.com/community/guided-learning-itsm/custom-date-format/td-p/2575521

 

3 - Change the system default or users default date/time format.

 

DevYadav
Tera Contributor

Hi @DrewW, thanks for your reply, i found point 2 near to solution but it is not displaying the dates after selecting.