Options
Generate Attribute Quarter from Date
WhiteBeard
Member Posts: 2 Newbie
in Help
Trying to create attribute to have Quarter from a date attribute. Getting Month number using
"date_get([Date Inserted],DATE_UNIT_MONTH,"GMT")+1"
but not able to convert or calculate Quarter.
Thank you.
but not able to convert or calculate Quarter.
Thank you.
Tagged:
0
Best Answer
-
OptionsWhiteBeard Member Posts: 2 NewbieFound the solution.
str(floor((date_get([Date Attribute],DATE_UNIT_MONTH,"GMT")/3)+1))
0