This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to get current date in October 10, 2005. 9.30 a.m format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to get current date in October 10, 2005. 9.30 a.m format" Watch "How to get current date in October 10, 2005. 9.30 a.m format" New topic
Author

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

Mintoo Jaiswal
Greenhorn

Joined: Jul 22, 2005
Posts: 8
How to get current date in below format in java or jsp
October 10, 2005. 9.30 a.m
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41062
    
  43
The java.text.SimpleDateFormat class can be used for this.


Ping & DNS - my free Android networking tools app
Ritesh Agrawal
Ranch Hand

Joined: Jan 08, 2004
Posts: 74
Hi,

A simple piece of code could be



Ritesh<br /> <br />SCJP 1.4<br />IBM Test 340<br />IBM AIX V4.0 Certified Professional<br /> <br />Right actions for the future are the best apologies for wrong ones in the past.<br />- Tyron Edwards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get current date in October 10, 2005. 9.30 a.m format
 
Similar Threads
How to get current date in below format in java or jsp
how to get date format like "September 8, 2005" which returns current date ?
java dates
SQL date
How to print default date in required format