A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Java in General
Date type conversion from dd/mm/yyyy to yyyy-mm-dd
Joined: Jun 23, 2008
Dec 21, 2010 00:06:14
my date is commming in dd/mm/yyyy.I want to convert to yyyy-mm-dd in
That is 12/06/2010 to 2010-06-12.
Joined: Nov 24, 2005
Dec 21, 2010 00:14:08
All roads lead to JavaRanch
Joined: Aug 25, 2003
Dec 21, 2010 02:48:01
Or, if you're sure about the validity of source date, you can use a simple Regular Expression for conversion.
lets you validate the input date. This is recommended if, say the source (input) date is a user input or read from a text file etc.
I agree. Here's the link:
subject: Date type conversion from dd/mm/yyyy to yyyy-mm-dd
Code review required for converting dateformat
date format conversion to MM/dd/yyyy hh:mm a
How to fetch Date Field from excel sheet in Java
Unable to fetch records by using 'where' clause for a date type field in sql
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015