I am getting one string in particular format like "20051010 102533" this string is in "yyyymmdd HHmmss" format .
now i want this string to convert this Date object.
i am using following approch but it is not giving me expected output.
now i am getting something like TUE 25 JUNE 10:25:33 IST etc ... where as i want the date in following format like "20051010 102533 " .
Is it possible ???
thanks
Gavin Tranter
Ranch Hand
Joined: Jan 01, 2007
Posts: 333
posted
0
Your input, and required output are the same format?
Sudhakar Kalk
Greenhorn
Joined: Jul 02, 2007
Posts: 3
posted
0
When accessing the Date object it prints in the standard format only. So, if you want it in a specified format convert into String. [ July 03, 2007: Message edited by: Sudhakar K ]
We're pleased to have you here with us here on the ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. You can change it here