Experts Exchange connects you with the people and services you need so you can get back to work.
String timestamp = new java.sql.Timestamp(d.getTime()).toString();
Open in new window
to yyyy-mm-dd HH::MM::ss
Be seen. Boost your question’s priority for more expert views and faster solutions
The value is I get from SOLR is of type DATE
I would like to convert it to format (yyyy-mm-dd HH:MM:ss) and return this value as type 'Date'
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.
Premium members get this course for $151.20.
Premium members get this course for $49.99.
Premium members get this course for $79.20.
Premium members get this course for $108.00.
Premium members get this course for $159.20.