Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 125
Registered: ‎08-11-2011
My Device: Blackberry Smartphone 9780
My Carrier: -

DateField.Date show the "time" too

[ Edited ]

Hi, I am instancing a DateField with DateField.Date style and the "time" appears in the field... if I use DateField.Date_Time is the same. 


I think this is a bug...


anyway, if I use no style, only appears the "Time" ! so.. anny suggestion?


I am ussing BlackBerry Simulator 9800 and OS 6


Edit: Well, the problem is only when I combine some styles, I.E. "DateField.Date | DateField.Left | DateField.VCENTER"



My good english is beceause i dont speak english
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: DateField.Date show the "time" too

I suggest you use the constructor:

DateField(String label, long date, DateFormat format)

and then use


to format the Date/Time as you want.