May 02, 2023 05:13 PM
I have three columns: 1st is the Sales Last Month, 2nd is Sales This Month and 3rd one shows the ratio of the two columns. I want to add the DateTime format so Sales Field will look - Sales: 137/150 (Apr: 201/200) instead of Sales: 137/150 (201/200).
Solved! Go to Solution.
May 03, 2023 10:50 AM
@Yvia try something like this:
DATETIME_FORMAT(
TODAY(),
'MMM'
)
&" sales: "
&{Sales this month}
&" ("
&DATETIME_FORMAT(
DATEADD(
TODAY(),
-1,'month'
),
'MMM'
)
&" sales: "
&{Sales last month}
&")"
May 02, 2023 09:45 PM
Does this record contain a field with a Date field that contains the date time you'd like to format? Could you provide a screenshot of the whole record?
May 03, 2023 07:17 AM
There's no field date in this table. Is it still possible by adding using DATETIME_FORMAT(DATEADD(TODAY(),-1,‘month’),‘MMM’)?
May 03, 2023 10:50 AM
@Yvia try something like this:
DATETIME_FORMAT(
TODAY(),
'MMM'
)
&" sales: "
&{Sales this month}
&" ("
&DATETIME_FORMAT(
DATEADD(
TODAY(),
-1,'month'
),
'MMM'
)
&" sales: "
&{Sales last month}
&")"
May 03, 2023 11:37 AM
You are awesome!!! Thank you!