Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get current date in October 10, 2005. 9.30 a.m format  RSS feed

 
Mintoo Jaiswal
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to get current date in below format in java or jsp
October 10, 2005. 9.30 a.m
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The java.text.SimpleDateFormat class can be used for this.
 
Ritesh Agrawal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

A simple piece of code could be

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!