How to get current timestamp in java - Obtener Timestamp tiempo actual en JAVA
La forma de convertir la fecha actual a timestamp es la siguiente
Date date=newDate();//getTime() returns current time in millisecondslong time = date.getTime();//Passed the milliseconds to constructor of Timestamp class Timestamp ts =newTimestamp(time);System.out.println("Current Time Stamp: "+ts);
No comments:
Post a Comment