Rohit Bajaj
asked on
Extracting date from Timestamp in java
Hi,
java.sql.Timestamp timeStamp;
Currently i am doing timeStamp.toString().split (" ")[0] to extract the date part of the timestamp.
Is there any alternate way. Its surprising that Timestamp itself does not provide any such method.
Thanks
java.sql.Timestamp timeStamp;
Currently i am doing timeStamp.toString().split
Is there any alternate way. Its surprising that Timestamp itself does not provide any such method.
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.