We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Show date's month name instead of number

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 February8th,2023.

 

Thanks 

11 REPLIES 11

Not applicable

Hello @DevYadav 

 

 

    var gdt1 = g_form.getValue('u_date');
    var newDate = gdt1.getByFormat("MMMM dd,YYYY");
    return newDate;

 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.

 

Regards,

Samaksh

Hi @Community Alums, thanks for the code, but I want to show month's name here i.e. "June" for '6' or "February" for '2'

Not applicable

Hello @DevYadav 

 

What is your expected output

and What output you are getting from my script plz mention.

 

 

Hi @Community Alums, I want to show date format in i.e. "December 20th, 2022".
variable name is: date [u_date].
type is: date