How do I convert a date format

John H1
Tera Guru

I have a Script Include/Client Script that adds 27 months to a date field, the problem is it changes the date format to 2023-09-12 instead of 09-12-2023.

 

How can I update the client script to show the correct format?

1 ACCEPTED SOLUTION

John H1
Tera Guru

Find the solution... Added this line of code

g_form.setValue('certificate_expiration_date',formattedDate);

 

View solution in original post

5 REPLIES 5

John H1
Tera Guru

Find the solution... Added this line of code

g_form.setValue('certificate_expiration_date',formattedDate);