• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I WANT GMT DATE --- please help

 
mou haj
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to print the GMT Date time.... hoe do I get it
please help
 
bhaskar reddy.b
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u just include this and i think u will get it
<%=(new java.util.Date( ))%>
 
Stuart Stephen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will, assuming your server is set to GMT time.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the Timezone class to specify it. Then use dateformat to format the date.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic