I Need to populate only date from below image in catalog item variables.

pdisrilatha
Tera Contributor

pdisrilatha_3-1727181724999.png

 

 

 

 

 

 

2 REPLIES 2

Eshwar Reddy
Kilo Sage

Hi @pdisrilatha 

Use below script to convert it to only date 

var datetimeValue = "your field name";
var gdt = new GlideDateTime(datetimeValue);
var dateOnly = gdt.getDate().toString();

EshwarReddy_0-1727182755181.png

 

 

result

EshwarReddy_1-1727182780792.png

 

Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution

 

Thanks 
Eshwar

pdisrilatha
Tera Contributor

@Eshwar Reddy 

it is not working