Suppose the given date string is June, 30 2009
First we will make a Calendar object and convert it to Date Object
Calendar calendar = new GregorianCalendar(2009, 6 - 1, 30);
Date dateObject = new Date(calendar.getTimeInMillis());
So here it is, java.util.Calendar Object converted to java.util.Date object
Wednesday, July 1, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment