This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes GWT and the fly likes SmartGWT TimeItem -Solved- Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » GWT
Bookmark "SmartGWT TimeItem -Solved-" Watch "SmartGWT TimeItem -Solved-" New topic

SmartGWT TimeItem -Solved-

Vincent Oh
Ranch Hand

Joined: Jan 02, 2012
Posts: 33

I need some help with TimeItem. Let's say that user input 01:00, how do I retrieve the values correctly?

If i do a getValueAsString(), it returns me "Thu Jan 01 1970 01:00:00 GMT+0800 (SGT)"
If i do a getValue(), it returns me "Thu Jan 01 00:30:00 SGT 1970"

Anyone know how to correctly get the 0100 out?

Thanks alot!

I realised there's a getDisplayValue(). Hope it helps anyone who have trouble getting the value out.
Have you checked out Aspose?
subject: SmartGWT TimeItem -Solved-
It's not a secret anymore!