This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Date conversion Milli sec to Date format  RSS feed

 
Anshul Sinha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I an stuck at a simple issue...
I want to convert the date in millisec eg. 11124400000 to normal date format..eg. 2/3/2007

I am trying thr sql querry but cant fetch the result from resultset

is it possible to solve it without using sql querries like FROM_DAYS()...using only java and not sql?
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch Anshul ,

maybe this thread answer your question.

Jim Yingst gave a nice solution for what you are looking for

Regards,
Darya
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anshul Sinha, please take the time to choose the correct forum for your posts. This forum is for questions on Advanced Java.

This post has been moved to a more appropriate forum.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!