Thousands of examples at your fingertips!
All classes, methods fields etc. are linked to the API documentation.
All members are listed by frequency of use or alphabetically (see left pane).
Links to examples and utility functions/classes are shown below
Class java.sql.Date
[api documentation] [ main menu] Search

Links to examples (only one line shown below for each example):
[add your own example]

1 java.sql.Date lDateOld = null;
2 return new Date(System.currentTimeMillis());
3 return java.sql.Date.valueOf((String)raw);
4 return (new java.sql.Date(System.currentTimeMillis() +
5 return new java.sql.Date(((java.util.Date)value).getTime());
6 return new java.sql.Date(readLong());
7 return java.sql.Date.valueOf(nullValue);
8 java.sql.Date sqlDate = new java.sql.Date(date.getDate().getTime());
9 java.sql.Date checkDate = java.sql.Date.valueOf(currentDateString);
10 Date previousDate = new Date (iteration.endDate.getTime() - (1000 * 60 * 60 * 24));
11 Date date = new Date(time*1000);
12 java.sql.Date d = (java.sql.Date) value;
13 java.sql.Date sd = new java.sql.Date(ts.getTime());
14 setEndDate(Date.valueOf("2050-01-01"));
15 record.set("INVOICE_DATE", new java.sql.Date(new Date().getTime()));
16 return new java.sql.Date(newDate.getTime());
17 if(lobjData == null) {return new java.sql.Date(System.currentTimeMillis());}
18 return java.sql.Date.valueOf((s.length() == 10) ? s : s.substring(0, 10));
19 return java.sql.Date.valueOf(TestUtil.fix(y, 4) + "-" +
20 return new java.sql.Date(formatter.parse(dateString).getTime());

Links to utility classes and functions:

1 toSqlDate(String date) org.ofbiz.core.util.UtilDateTime
2 toSqlDate(String monthStr, String dayStr, String yearStr) org.ofbiz.core.util.UtilDateTime
3 toSqlDate(int month, int day, int year) org.ofbiz.core.util.UtilDateTime
4 com.opensymphony.util.DateUtil
5 org.apache.tools.ant.util.DateUtils
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.