How to remove time from date/time sys_created_date field and from the list

lrossy31
Tera Expert

Hello all,

I will greatly appreciate if anyone can share how to change a date/time field or to split the time off of the field and show only the date part in the field and in the list.

find_real_file.png to this find_real_file.png

4 REPLIES 4

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

Unfortunately that isn't possible as those are Date+Time type fields.  If must have date only, the only solution would be to create a date type field and use a business rule to replicate the date part of your existing field into that field.

How would you do this? thanks

Here is the sample script

var gdt = new GlideDateTime(current.sys_created_on);
current.u_created = gdt.getDate();

Armacar
Tera Contributor

How will you do this?