• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date Format: How to know the Date in which format

 
Chennarao Marvatu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Everybody ..I have the task in Date Format..
How can we know that the Given Date in which Format...
pls send me the source code for checking out the format for given Date

Thanks in Advance

Chennarao
 
Joe Ess
Bartender
Posts: 9318
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Java Ranch, Chennarao.
Date's are not in a particular format. They represent a point in time. To format a date, one uses other classes like java.text.DateFormat. There's a chapter in the Java Tutorial on Formatting Dates and Times that you may find instructive.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic