Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

How to Convert the Date to 2010-02-20T00:00:00.00-00:00 format

Avatar

Former Community Member

Hi

In my applcation i am having one field . Here user can select the date using the calendar dropdown .

while sunmitting the PDf i want to pass date as this format 2010-02-20T00:00:00.00-00:00

anybody is having any idea .

Regards

Dhiyanesh

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try this.. Language needs to FormCalc.

Place a hidden text field and place the below code in the Exit event of the Date Field.

Replace Date() and Time() below with the appropriate Field values.

$

= Concat(Num2Date(Date(),"YYYY-MM-DD"),"T", Num2Time(Time(), "HH:MM:SS"));

Thanks

Srini

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Try this.. Language needs to FormCalc.

Place a hidden text field and place the below code in the Exit event of the Date Field.

Replace Date() and Time() below with the appropriate Field values.

$

= Concat(Num2Date(Date(),"YYYY-MM-DD"),"T", Num2Time(Time(), "HH:MM:SS"));

Thanks

Srini