Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 83469

Assigning Quarter to a DateTime

$
0
0
Does the following look like it should correctly assign quarter to a datetime field? I’m finding quarter incorrectly assigned, e.g., where month is correctly set to 7, quarter is 3?   if  parseInteger(formatDateTimeUTC($Iterator_MTDHist/mindt,'MM')) <= 3 then 1 else if parseInteger(formatDateTimeUTC($Iterator_MTDHist/mindt,'MM')) <= 6  then 2  else if  parseInteger(formatDateTimeUTC($Iterator_MTDHist/mindt,'MM')) <= 9  then 3  else if parseInteger(formatDateTimeUTC($Iterator_MTDHist/mindt,'MM')) >= 10  then 4  else 0

Viewing all articles
Browse latest Browse all 83469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>