Link to home
Start Free TrialLog in
Avatar of Rohit Bajaj
Rohit BajajFlag for India

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
SOLUTION
Avatar of Norie
Norie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial