Monday, January 5, 2009

ICU DateFormat - Year Representation

The format character 'Y' (upper case) is intended to be used in conjunction with ISO 8601 "week of year" notation whereas the format character 'y' (lower case) represents the actual year.

Example:
December 31, 2008 formatted with YYYY/MM/dd yields 2009/12/31
December 31, 2008 formatted with yyyy/MM/dd yields 2008/12/31

No comments: