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 Elasticsearch in Action this week in the Big Data 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
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
The java.text.SimpleDateFormat class can be used for this.
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to get current date in October 10, 2005. 9.30 a.m format