The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Show String data on Date field

Developer2764
Tera Contributor

Hi Team,
Good Day!
there are two variables. One is Single line text and other is date type. First variable will take dates but in Jan 1, 2023 format. I want to capture this date in second variable. it's name is capture date[c_date].
Thanks

7 REPLIES 7

Hello @Developer2764 

 

Yes use that script which i shared with you.

 

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

 

Regards,

Samaksh

 

 

Hi @Developer2764,

 

You can auto-populate date in required format based selection of Date type variable.

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

Samaksh Wani
Giga Sage
Giga Sage

Hello @Developer2764 

 

In that case you need to use onChange() Client Script.

 

 

var date = g_form.getValue('first_variable_field');
g_form.setValue('second_variable_field',date);

 

 

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

 

Regards,

Samaksh