Expand my Community achievements bar.

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

Issue in Date format in process

Avatar

Level 4

Hi,

I am using format-dateTime-withFormat() function in process to convert the format to mm-dd-yyyy. While formatting the date its subtracting date and month by 1.

Example: current-date() gave the output as "2012-01-17". When I am formatting this using

 

format-dateTime-withFormat

Please let me know is there some bug in this function or am I missing out something in the parameter.

Thanks and Regards,

Ambika

(current-date(),'mm-dd-yyyy'). I am getting output as "00-16-2012".

1 Accepted Solution

Avatar

Correct answer by
Level 4

I got the solution to this problem.

mm - stands for minutes

MM - stands for month.

When I changes the pattern to "MM-dd-yyyy". I got the correct month.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

I got the solution to this problem.

mm - stands for minutes

MM - stands for month.

When I changes the pattern to "MM-dd-yyyy". I got the correct month.