Tuesday, 27 August 2013

"2013-01-10" To Tue Jan 01 00:08:00 IST 2013 conversion in scala

"2013-01-10" To Tue Jan 01 00:08:00 IST 2013 conversion in scala

hi i want to convert "2013-01-10" To Tue Jan 01 00:08:00 IST 2013 format
in scala my source date is in string format searchDate1="2013-01-10" val
format = new java.text.SimpleDateFormat("yyyy-mm-dd") var
x=format.parse(searchDate1)
i tried to format using format.parse but it does not give me the required
format.!

No comments:

Post a Comment