How change due date format in flow designer ?

Thej1
Tera Expert

Hi,

 

want to change the due date format of RITM in the input of REST api step as shown in the screen shot.

Thej1_0-1739899619540.png

 

Due date: 

 2025-02-11 09:53:51

 want due date in this fomrat 2025-02-11. and use this input variable in the request content in REST step.

 

How can this be achievable ? Tried many ways but coming due as empty in the pay load of the flow execution.

 

Can you please help me in this ?

@Ankur Bawiskar  @Dr Atul G- LNG  @AnveshKumar M  @Riya Verma 

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Use a transform function on the data pill. Specifically Date & Time > Date to String. You have an existing "ISO Format" option which meets your requirement 

 

KieranAnson_0-1739901770419.png

 

View solution in original post

3 REPLIES 3

V V Satyanaraya
Tera Contributor

Hi @Thej1 

 

You can create a flag field on the same form and update it with the date value using scripts 

var dateTime = new GlideDateTime('2025-02-11 09:53:51')  // replace this with due date value 

var dateOnly = dateTime.getDate();

Set flag field value using BR and use the flag field in the rest api due date 

 

Kieran Anson
Kilo Patron

Use a transform function on the data pill. Specifically Date & Time > Date to String. You have an existing "ISO Format" option which meets your requirement 

 

KieranAnson_0-1739901770419.png

 

Hi @Kieran Anson ,

 

Thank you. It worked.

 

Thanks