Java SQL Date convert(Object o)

Here you can find the source of convert(Object o)

Description

convert

License

Open Source License

Declaration

public static Object convert(Object o) 

Method Source Code

//package com.java2s;

public class Main {
    public static Object convert(Object o) {
        if (o == null)
            return o;
        if (o instanceof java.sql.Date)
            return new java.util.Date(((java.sql.Date) o).getTime());
        return o;
    }/*from w ww  .  ja v a 2s.co  m*/
}

Related

  1. calcLastMonth(String begin, String end, String now, GregorianCalendar calendar)
  2. calcThisMonth(String begin, String end, String now, GregorianCalendar calendar)
  3. canConvert(Class clz)
  4. convert(Class propertyType, Object value, String propertyName)
  5. convertTo(Class clazz, Object obj)
  6. convertTo(final Class> clazz, Object obj)
  7. getClasses()
  8. getCurrDay()