Uh, that's very wrong. Please always use
yyyy-MM-dd
.
Indeed. Also, if you’re going to use a fixed date format string, also fix the locale to en_US_POSIX
. There’s a world of things that can go wrong otherwise. My response on your other thread explains the three valid ways to use DateFormatter
.
Share and Enjoy
Quinn “The Eskimo!” @ DTS @ Apple