B4J Question Have I got this DateTime.DateFormat correct?

Fr Simon Rundell

Member
Licensed User
Longtime User
I have a field with dates in the following style:

Thursday 28 December 2023
or
Sunday 3 December 2023

I think the DateFormat to be able to parse this is

E d M YYYY

but I am clearly wrong.

Can anyone point me to a resource that will enable me to get the right format. I am assuming that if I specify the DateFormat correctly, then DateParse will convert it to ticks.
 
Solution
I have a field with dates in the following style:

Thursday 28 December 2023
or
Sunday 3 December 2023

I think the DateFormat to be able to parse this is

E d M YYYY

but I am clearly wrong.

Can anyone point me to a resource that will enable me to get the right format. I am assuming that if I specify the DateFormat correctly, then DateParse will convert it to ticks.
Try this format "EEEE d MMMM yyyy"

teddybear

Well-Known Member
Licensed User
I have a field with dates in the following style:

Thursday 28 December 2023
or
Sunday 3 December 2023

I think the DateFormat to be able to parse this is

E d M YYYY

but I am clearly wrong.

Can anyone point me to a resource that will enable me to get the right format. I am assuming that if I specify the DateFormat correctly, then DateParse will convert it to ticks.
Try this format "EEEE d MMMM yyyy"
 
Upvote 0
Solution
Top