I used the Day function on a date field and it returns an integer. How do we convert this to the day of the week - Mon, Tue etc.?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
In an xtk expression? You'd have to use a long chain of decode's or iif's. Assuming Day() counts from 1:
decode(Day(@date), 1, 'Sun', decode(Day(@date), 2, 'Mon', decode(Day(@date), 3, 'Tue', ...))))
Thanks,
-Jon
Views
Replies
Total Likes
Hi,
In an xtk expression? You'd have to use a long chain of decode's or iif's. Assuming Day() counts from 1:
decode(Day(@date), 1, 'Sun', decode(Day(@date), 2, 'Mon', decode(Day(@date), 3, 'Tue', ...))))
Thanks,
-Jon
Views
Replies
Total Likes
Thanks. I was going down the same path - I was going to use Case statements. Was wondering if there was any pre-built function. Will try both, thanks!
Views
Replies
Total Likes
You can use formatDate option % A for short day name in a javascript https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/f-formatDate.html?hl=...
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies