Get Day,Month,Hours,Minute from a given Timestamp
Posted on 2005-04-19
For example , the timestamp is given as "2003-04-05-11.30.22.0000"
How can I retrieve the minutes,day,seconds from the given timestamp.
I tried to retrieve it by using
java.sql.Timestamp actcmpStmp = "2003-04-05-11.30.22.0000";
int runday = actcmpStmp.getMinutes();
But the methods used above are DEPRECATED.
How can I retrieve seconds, minutes,day, etc from a given Timestamp without using Depracted Methods.
Can anyone help me in this regard.