I have always used the datetime value from January 1 / April / July / October, representing every quarter. Makes calculating the start and end dates of a quarter simple:
- Start date:
datetime column. - Final data:
dateadd(month,3,quarterColumn)
Another alternative would be ISO 8601 . Here is an ISO 8601 profile for use in Internet protocols: RFC 3339 (proposed standard).
The presentation of ISO 8601 for each quarter of 2011 is as follows:
- 2011-01-01 / P3M
- 2011-04-01 / P3M
- 2011-07-01 / P3M
- 2011-10-01 / P3M
The above indicate the duration, starting date and duration (in this case, 3 months).
The advantage of ISO 8601 date and time formats is that strings are (A) human-readable, (B) they are sorted correctly, (C) they are easily parsed, and (D) its international standard.
Some people βextendβ the ISO 8601 notation, where the week of the year looks like 2011W32 (32nd week of 2011), to a quarter notation. Using this unofficial extension, the quarters of 2011 look like this:
source share