Caution: SimpleDateFormat


Every day at work teaches you something or the other. Today I learned something patterns, in general. A pattern used in a certain API doesn’t always consort with common sense. You actually should read the API first before using it in your application.In case you are into java, then you must have heard or even used a SimpleDateFormat. A SimpleDateFormat is widely used to convert a String into a Date(java.util.Date) according to a pattern. e.g. String dateAsString = “2012-01-06 12:23:34”;SimpleDateFormat sdf ...