File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Joined: Mar 04, 2007
Nov 22, 2008 23:14:00
I need to print the date in the below format :
DD/MM/YYYY T HH:MM:SS
But i am getting exception when i use in the above format because of the character " T ".May i know any suggestion to print the date in the above format.
I am using
class to print the Date.
I am waiting for your valuable suggestions.
Joined: Nov 20, 2008
Nov 23, 2008 00:25:00
Just put single quote around the letter T or any other custom
that you need in the formatted string. In your case, it should be something like
[ November 23, 2008: Message edited by: Duc Vo ]
“Everything should be as simple as it is, but not simpler.” Albert Einstein
Joined: Oct 13, 2005
Nov 23, 2008 01:49:00
It might be easier to use the %T tags; they are listed in
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Regarding java.util.Date
How to write errors to a file using Log4j.Properties
f:convertDateTime not working
String to date conversion in java
How to change Date Format
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013