File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 41621
    
  55
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to get current date in October 10, 2005. 9.30 a.m format