Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

create date java

Date date = new GregorianCalendar(2014, Calendar.FEBRUARY, 11).getTime();

or

public static Date parseDate(String date) {
     try {
         return new SimpleDateFormat("yyyy-MM-dd").parse(date);
     } catch (ParseException e) {
         return null;
     }
  }

Date myDate = parseDate("2014-02-14");
 
PREVIOUS NEXT
Tagged: #create #date #java
ADD COMMENT
Topic
Name
8+6 =