How to show DateField with AM/PM format in blackberry?


I don't know how to show Time in AM/PM format in blackberry using blackberry datefield.Pls give me a idea how to do this.


Use <a href="http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/i18n/SimpleDateFormat.html" rel="nofollow">SimpleDateFormat</a>:

SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss aa"); long date = System.currentTimeMillis(); DateField dateField = new DateField("time:", date, timeFormat); add(dateField);

<a href="http://img171.imageshack.us/img171/7642/timeformat.jpg" rel="nofollow">alt text http://img171.imageshack.us/img171/7642/timeformat.jpg</a>


  • Using dates in jQuery Flot display
  • compare two time values in java
  • List all files in a directory in order of date as found inside the file names?
  • How to add jQuery if statement inside a set of plugin options?
  • highlighting specific date in calendar view without onClickListener
  • Firebase Save Notification to DB not working when app is not running
  • how to find the index position of the ARRAY Where NSPredicate pick the value. I use filteredArrayUsi
  • Round brackets not showing up correctly in RightToLeft flow direction in WPF
  • Formatting a TimeSpan to look like a time zone offset
  • RavenDB OrderByDescending and Take - Incorrect Results
  • problem with calling libraries
  • How to retrieve Business Component rows in SIebel Open UI PM?
  • html5 tag support
  • java program to calculate XIRR without using excel or any other library
  • jQuery - how to validate a date of birth using jQuery Validation plugin?
  • jQuery random blockquote
  • A simple datepicker in VueJS
  • How to parsing NSDate to RFC 822 always use in English?
  • date: illegal option — d, Find difference between two dates
  • Regexp, capture between parentheses, javascript
  • Log4j cannot find properties file in a simple application
  • Express displaying mongodb documents in Jade
  • Ruby and class variables in inherit class
  • Change device language on Android 6.0 (Android M)
  • Get localized short date pattern as String?
  • Find Previous month name using Calender or any classes that in java
  • Parse a date string in a specific locale (not timezone!)
  • Linq Objects Group By & Sum
  • Read text file and split every line in MSBuild
  • Optimizing database types to compact database (SQLite)
  • C# - Serializing and deserializing static member
  • Java applet as stand-alone Windows application?
  • Does CUDA 5 support STL or THRUST inside the device code?
  • Microsoft Visual Studio Community 2015 always crashes in Windows 10 if swithed to Visual FoxPro
  • Buffer size for converting unsigned long to string
  • Error creating VM instance in Google Compute Engine
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • How can I remove ASP.NET Designer.cs files?
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • reshape alternating columns in less time and using less memory