File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: I WANT GMT DATE --- please help
It's not a secret anymore!