Code example for Timestamp

0
    { 
      return new Time(date.getTime());
    } 
    if (targetType.equals(Timestamp.class))
    { 
      return new Timestamp(date.getTime());
    } 
 
    return new Date(date.getTime());
  } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE