Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Are you just using Date().toString() and hoping for the best? Have you looked at the DateFormat class? It works in GMT and allows you to fool with the formatting, so I think this is what you need. However, Jay is the resident JSP expert, so maybe he'll weigh in with a more specific answer for you... - mfg > > > i'm writing a audit trail prog in JAVA for a distributed system. > > i can grab the date by using java.util.Date. which is in > > however, when i use the same program in jsp, everything goes > > surprisingly, a fren ran my prog at his computer and everything's fine. the date's in 'SGT' format. but as i tried it > > why does the problem occur? > > hope u ppl can help. :)
Replies: |
Sponsored Links
|