Same block but different result

Here is my block where I am getting different results for changing patterns. an extra 3 appeared. but why I don’t know.can anyone help me to solve that

I can’t see any difference :thinking:

sorry mistake

Maybe because the pattern in the first block only says “d” for the date part, while the pattern in the second one says “DD”

Or maybe try experimenting with the same pattern written differently?

1 Like

I remember DD is not a valid pattern.
So try dd.

1 Like

DD is a indeed a valid pattern, however it is day in year instead of day in month. You are right on using dd.

More information in the following website:
https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

1 Like

thank you for remember :hugs:. & thank you @WatermelonIce thanks for your reply. I set the pattern according to kodular docs. In docs, they mention the wrong pattern

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.