Sridhar Ranganthan wrote:This is not really help me....
Sridhar, the link provided by Smitesh has a lot of examples. Is there anything particular that you didn't understand in it?
Also, show us what you have done so far, let us know if you are stuck somewhere and we'll try to help. Please show some effort.
Actually the link that Smitesh sent is about how to format a date in different forms but what Shridhar is asking is, when you get an input of date as String how are you going to identify the Pattern used by the String to format the date. Which is something that I have never come acrossed before.