I’m working on a custom email parser that categorizes and filters and email from a vendor, extracts values based on the filter applied and creates records in SmartSuite accordingly.
Most of the app is created, but i’m having a hard time parsing the date from a text that i am getting from the email.
Usually the text is formatted as such " Wednesday, 30 August" for example.
I know that i need to add a year and that is possible.
But i still cannot parse a date format out of this text.
You need to use the parseDate() function and define the format of the input. According to date tokens, the function should look like (for better understanding, I used the example from your question directly in the function) :
parseDate('Wednesday, 30 August', 'dddd, D MMMM', 'Prague/Europe')
where:
dddd stays for day in a week
D stays for the day in a month, and
MMMM stays for the month’s name
Prague/Europe is the timezone of the date, this is to ensure that the date is correctly parsed
When setting up the function, ensure, that you enter the timezone in which your system works.