Project

General

Profile

« Previous | Next » 

Revision 1746

Added by Jing Tao over 20 years ago

Add a concrete method toDate which can transfer text string to date type.

View differences:

AbstractDatabase.java
87 87
   * MSSQL didn't support to_date function which to transfer a text string
88 88
   * to date type. But Oracle and Postsql do.
89 89
   */
90
  public abstract String toDate(String dateString, String format);
90
  public String toDate(String dateString, String format)
91
  {
92
    return "to_date(" + "'"+ dateString + "', '" + format + "')";
93
  }
91 94
  
92 95
  
93 96
  /**

Also available in: Unified diff