A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
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.
Ping & DNS
- my free Android networking tools app
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()));
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Date Format
<bean:write/> of struts1
how to convert String into Date format
Conversion of date to Arabic
is that any utility class that help compare date within start and end date ?
Another format check :P
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014