String convert to a DATE

Hello

How do I conver bellow String to a Date ?

I’m receiving this via email body as 28/09. (DD/MM). I need to store this as a Date in local data storage. Is there a converter that I can convert this string to a Date.

Thanks

Hello @Niranga_Jayakody,

I don’t think that’s considered a valid date without the year, but if you’re able to assume the year, then you can use the parseDate() function to convert the string to a date.

3 Likes

Here are some screenshots demonstrating use of the parseDate() function:

Screenshot_2023-09-29_110958

As you can see, the year is assumed to be the current year, and time is set to 12:00 AM local time.

6 Likes