This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes I WANT GMT DATE --- please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "I WANT GMT DATE --- please help" Watch "I WANT GMT DATE --- please help" New topic
Author

I WANT GMT DATE --- please help

mou haj
Ranch Hand

Joined: Sep 12, 2001
Posts: 81
I want to print the GMT Date time.... hoe do I get it
please help
bhaskar reddy.b
Greenhorn

Joined: Jan 21, 2002
Posts: 8
u just include this and i think u will get it
<%=(new java.util.Date( ))%>
Stuart Stephen
Greenhorn

Joined: Jan 23, 2002
Posts: 2
You will, assuming your server is set to GMT time.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You can use the Timezone class to specify it. Then use dateformat to format the date.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I WANT GMT DATE --- please help
 
Similar Threads
Date vs Calendar
How to get yesterday's business date
Date locale setting
Convert String to Date format
Getting current GMT date as Date object