Hi,
In my application I am getting one
String variable which holds date in yyyy-mm-dd hh:mm:ss format. It is a String type and i would like to convert it in sql.Date. TO convert in sql.Date type i am doing the following:
1) I am getting value in format of
yyyy-mm-dd hh:mm:ss, example 2008-03-19 19:44:58
2) i am trying like:
[B]/
[/B]
when i convert String date i get in parsedUtilDate: Wed Mar 19 19:44:58 IST 2008
and sqltDate is having value
2008-03-19 could you please help me to get date in same format in sqltDate (as it is stringDate),
2008-03-19 19:44:58 thank you for your help,
Ajay