| Package | Description |
|---|---|
| com.codename1.l10n |
The Localization API allows developers to adapt their applications to different geographic locales and
conventions.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleDateFormat
A class for parsing and formatting dates with a given pattern, compatible
with the Java 6 API, as in the examples here: https://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html
To localize the formatted dates, see the discussion Format a localized date in Codename One. |
| Modifier and Type | Method and Description |
|---|---|
static DateFormat |
DateFormat.getDateInstance()
Get a DateFormat instance with default style for date (SHORT).
|
static DateFormat |
DateFormat.getDateInstance(int style)
Get a DateFormat instance that uses a given style for dates.
|
static DateFormat |
DateFormat.getDateTimeInstance(int dateStyle,
int timeStyle)
Get a DateFormat instance that uses a given style for dates and times.
|
static DateFormat |
DateFormat.getInstance()
Get a DateFormat instance with default style for date/time (SHORT/SHORT).
|
static DateFormat |
DateFormat.getTimeInstance()
Get a DateFormat instance with default style for time (SHORT).
|
static DateFormat |
DateFormat.getTimeInstance(int style)
Get a DateFormat instance that uses a given style for times.
|
Copyright © 2021. All rights reserved.