day() function in calculated fields / calculation properties
We really need the integer day of a date to send some awesome, highly personalized emails. I'm not sure how it is that we could have two enterprise hubs 250+ calculation properties but not even a simple day() function.
Hallo, wir benötigen diese Funktion ebenfalls um einen Jahrestag (jährlich wiederkehrender Tag) aus eine, festen Datum ermitteln zu können. Vielen Dank
If there were a date() constructor or if you could convert a string into a date you could do a time_between() on the first of the month and the date your trying to get the day from. Unfortunately there's no way to create a date object.
There is, however, the possibility to use a date literal (which is the date in milliseconds since the beginning of 1970), but it gets complicated if you’re spanning multiple years. The example below assumes all of your dates fall into 2025 (1735603200000). It uses time_between() on your date and the beginning of 2025, then divides by milliseconds per day (86400000), then subtracts days in the year from previous months. It outputs a string like “2025-03-04”. If there are multiple years, as I said, it gets more complicated, but is possible.
Totally agree, having access to basic functions like day() would make personalization so much easier, especially at scale. In the meantime, this date calculator might help with quick manual checks or workarounds: Hoping this gets prioritized soon!
Agreed that it's super weird that we can extract month and year but not day. We really need this for our ongoing workflows & reporting. Hoping this can be implemented quickly.
Você deve ser um usuário registrado para adicionar um comentário aqui. Se você já estiver registrado, faça logon. Se você ainda não estiver registrado, registre-se e faça logon.