Monday, March 5, 2018

String to Date


String dojStr = "1971-07-15"; 
DateFormat df = new SimpleDateFormat( "yyyy-MM-dd" ); 
Date dojDate = null; 
dojDate = df.parse(dojStr);

No comments:

Post a Comment