From the api docs:
Quote:
This builds a date field, inferring the required date format for this field from the style parameter you provide. Thus, at the very least, style must include one of DATE, TIME, or DATE_TIME.
|
Try adding (bitwise) one of the DateTime styles to your draw style. The following works for me.
Code:
DateField df = new DateField("", System.currentTimeMillis(), DateField.DATE_TIME | DrawStyle.LEFT);