This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "I WANT GMT DATE --- please help" Watch "I WANT GMT DATE --- please help" New topic

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

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

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.

So much trouble in the world -- Bob Marley
jQuery in Action, 3rd edition
subject: I WANT GMT DATE --- please help
It's not a secret anymore!