Similarly, for formatting and parsing date/time, use com.google.gwt.i18n.client.DateTimeFormat
Convert Date to String - Format
DateTimeFormat.PredefinedFormat.DATE_SHORT).format(newDate())
Convert String to Date - Parse
DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_SHORT).parse(dateString)
No comments:
Post a Comment