A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Make it so: Java DB Connections & Transactions
this week in the
Joined: Dec 27, 2004
Mar 04, 2006 07:06:00
may i know how to change the date format to CST of the Date object?
Joined: Mar 22, 2005
Mar 04, 2006 08:01:00
The Date class has no concept of timezones. You will need to use the Calendar class.
Joined: Nov 24, 2000
Mar 04, 2006 11:05:00
If you require a Timezone aware date implementation you might want to evaluate:
Joined: Jan 07, 2006
Mar 05, 2006 05:07:00
You can set the time zone of a
object by using the setTimeZone method:
DateFormat df = DateFormat.getDateTimeInstance(); df.setTimeZone(TimeZone.getTimeZone("CST")); print(df.format(new Date()));
I agree. Here's the link:
subject: Date Format
Conversion of date to Arabic
is that any utility class that help compare date within start and end date ?
<bean:write/> of struts1
Another format check :P
how to convert String into Date format
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015