• Post Reply Bookmark Topic Watch Topic
  • New Topic

Date object  RSS feed

 
Rohit Saxena
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do represent
Sat Jan 01 00:00:00 CST 1
as a Date?
 
Sridhar Santhanakrishnan
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want it to be parsed into a Date object? If so, just find what the format is and use SimpleDateFormat.parse()
 
Campbell Ritchie
Marshal
Posts: 56545
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!