I have been working with a Birthday reminder application for quite some time. During which, I have noticed that contact birthdays are being stored in different formats on different devices. Several of them are given below.
yyyy-MM-dd
yyyy-MM-dd'T'HH:mm:ss'Z'
yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
It took many crashes and bug-reports to figure out these formats.
Now, I am having same problem all over again with dates with no year. This is a valid case and it's supported by google contacts. I own an HTC Desire and these dates are stored in my phone with the following format (--MM-dd).
What I want to know is whether Android has any standard way of storing dates (like birthdays/anniversaries) when no year is specified? According to DateParser, it should take current year but, that's not valid. What can I do to explicitly specify that the year in a date is unknown?
Thanks in advance.