I want to convert a string representation of date in any format to java.sql.Timestamp
,(format is also provided)
we have tried using Timestamp.valueOf()
and Date.valueOf()
but both these method requires String in a particular format,What i need is a generic method which will convert a given String date in any format to java.sql.Timestamp
Thanks in Advance