Would it be possible to get the same date formatters in server actions that we have on the front end?
Server Side Options
Front end Options
I would like to use Get Day of the Week so I can create a table that has a row for each of the dates between my start and end dates, but also creates rows for the days before the first day back to the last Monday.
For instance, if I have dates of Feb 15 2024 to Feb 18 2024 I’d like to end up with a table
Feb 12 2024 (Monday) - Filler
Feb 13 2024 (Tuesday) - Filler
Feb 14 2024 (Wednesday) - Filler
Feb 15 2024 (Thursday) -Start Date
Feb 16 2024 (Friday) - Date
Feb 17 2024 (Saturday) - Date
Feb 18 2024(Sunday) - End Date
I tried using getDay but throws an error.
'Parser Error: Formatter "getDay" does not exist, expression {{query.trip_start_date.getDay()}}'