How to check the date formats

Hi All
I have a problem in finding the date formats if any one known it means please share me
my question is my input in 12/09/2019 means how to find the date formats it in dd/MM/yyyy
or MM/dd/yyyy

Hi @vivekktr
in_date = “12/09/2019”

out_date = in_date.toString(“MM/dd/yyyy”)

Regards,
Kommi Jeevan.

HI
thanks for you quick reply.But my question is how to find the formats

please share that file?

Maybe what you need is the the DateTime.TryParseExact method.
This method returns boolean True if the provided date matches the date string format you provided.

You can read more about it here

1 Like