You cant!
If you have the date 2010-08-05
then it can be either 5th August 2010, or 8th May 2010 – you need to know the date format (or at least prioritise one format over the over) to tell them apart.
More Related Contents:
- java.text.ParseException: Unparseable date: "Augu 16, 1979" [duplicate]
- What is this date format? 2011-08-12T20:17:46.384Z
- How to parse date string to Date? [duplicate]
- Difference between java HH:mm and hh:mm on SimpleDateFormat
- java parsing string to date
- java.util.Date format SSSSSS: if not microseconds what are the last 3 digits?
- Spring Boot Jackson date and timestamp Format
- Java: unparseable date exception
- How to get the given date string format(pattern) in java?
- Best way to convert Java SQL Date from yyyy-MM-dd to dd MMMM yyyy format
- Java Date Format for Locale
- Date format conversion error [duplicate]
- Change date format in a Java string
- Java date format conversion – getting wrong month
- Convert java.util.Date to what “java.time” type?
- Java: Why is the Date constructor deprecated, and what do I use instead?
- What is the use of “lenient “?
- Best way to constrain user to enter a time in a JTextField
- How to convert current date into string in java?
- Get GMT Time in Java
- Calculate Difference between two times in Android
- Android calculate days between two dates
- Android get date before 7 days (one week)
- How to print Two-Dimensional Array like table
- DateTimeFormatter Support for Single Digit Day of Month and Month of Year
- Is there a good way to get the date of the coming Wednesday?
- Getting difference between two dates Android
- How to get Date in the same format as String [duplicate]
- calculate business days including holidays
- Parse time of format hh:mm:ss [closed]