View Single Post
Old 04-01-2010, 05:51 AM   #2 (permalink)
vivartpandey
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 9000
Carrier: Airtel
Posts: 81
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i think you have to parse date manually and after that you can create date object.

Code:
// for date 31/3/10
monthnum = 3;
daynum = 31;
year = 10;
Calendar getCal = Calendar.getInstance();
            getCal.set (Calendar.MONTH,monthnum );
            getCal.set(Calendar.DAY_OF_MONTH,daynum);
            getCal.set(Calendar.YEAR,yearnum);
            Date date = getCal.getTime();
__________________
blog.vimviv.com
Offline