Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get Date Format of a System??

 
Balamurugan Balakrishnan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i get a Date & Time Format (dd/MM/yyyy hh:mm:ss) of the System using java?

Please give your suggestions.
 
vineet kumar chaudhry
Ranch Hand
Posts: 45
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

You can use following :


EEEE is for day

Hope it helps!!!
 
Balamurugan Balakrishnan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all thanks for the Quick reply vineet.! But I really need the Date & Time format of the System. For example Windows Date & time format.

vineet kumar chaudhry wrote:Hi

You can use following :


EEEE is for day

Hope it helps!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic