Revision 2281 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dataTypes/impl/coercion/AbstractCoerceToDate.java

View differences:

AbstractCoerceToDate.java
23 23
 */
24 24
package org.gvsig.tools.dataTypes.impl.coercion;
25 25

  
26
import java.sql.Timestamp;
26 27
import java.text.DateFormat;
27 28
import java.text.ParseException;
28 29
import java.text.SimpleDateFormat;
......
142 143
  }
143 144

  
144 145
  protected Date valueOf(String value) {
145
    return null;
146
    try {
147
        // Vamos a aceptar el formato del timestamp, ya que 
148
        // ningun DateFormat lo soporta.
149
        Timestamp n = Timestamp.valueOf(value);
150
        return n;
151
    } catch(Exception ex) {
152
        return null;
153
    }
146 154
  }
147 155

  
148 156
  protected Date valueOf(Date value) {

Also available in: Unified diff