Can some body give ideas for the same in java
I/p = 03/FEB/2012
O/p = dd/MMM/YYYY
I/p = FEB/03/YYYY
O/p = MMM/dd/YYYY
I am trying to fetch the Date Formatter type from Date provided
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well the best you can do is gather up a bunch of
SimpleDateFormatinstances and check whether each one can parse your input. If it can, then return it. Something like this:There’s no code in the world that can tell you whether the user intends
01/02/2012to mean January 2nd or February 1st.