Mar 03, 2023 10:21 AM
Hi,
I have a few dates and want to generate the day of the week initial based on the date in a column.
If the date is 6/29/2023, then it would return Th.
I've tried If and Switch, but my formulas are definitely wrong I think because it is related to a date. Ideas?
Mar 03, 2023 11:01 AM
You can use a formula for this: DATETIME_FORMAT(your date field, 'format specifier') .
Mar 03, 2023 01:18 PM
Ok, that is not working for me.
Mar 03, 2023 01:41 PM
I tried this too
Mar 03, 2023 03:02 PM - edited Mar 03, 2023 03:03 PM
To build on @Databaser's suggestion try this:
DATETIME_FORMAT([your date field], "dd")
This returns the following abbreviations:
The issue you are encountering is because you need to pass the formula one of the supported specifiers listed on this page: https://support.airtable.com/docs/supported-format-specifiers-for-datetime-format
If you need just the first letter of the abbreviation except on tuesdays/thursdays you could write:
I hope this helps!