Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SmartGWT TimeItem -Solved-

 
Vincent Oh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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!

Edited:
I realised there's a getDisplayValue(). Hope it helps anyone who have trouble getting the value out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic