public final class Formatters extends Object
Modifier and Type | Field and Description |
---|---|
static DateTimeFormatter |
DATE_DASH
Will print Joda
DateTime as date with dashes (e.g. |
static DateTimeFormatter |
DATE_DOT
Will print Joda
DateTime as date with dots (e.g. |
static DateTimeFormatter |
DATE_TIME_DASH
Will print Joda
DateTime as date/time (24-hour time) with dashes (e.g. |
static DateTimeFormatter |
DATE_TIME_LOG
Will print Joda
DateTime as date/time for logging (e.g. |
static DateTimeFormatter |
FRIENDLY_DATE_TIME
Will print Joda
DateTime as user-friendly date with 24 hour time (e.g. |
static DecimalFormat |
TO_CURRENCY
Will convert a decimal to currency format (e.g.
|
Constructor and Description |
---|
Formatters() |
public static final DecimalFormat TO_CURRENCY
public static final DateTimeFormatter DATE_DASH
DateTime
as date with dashes (e.g. 2016-07-25)public static final DateTimeFormatter DATE_DOT
DateTime
as date with dots (e.g. 2016.07.25)public static final DateTimeFormatter DATE_TIME_DASH
DateTime
as date/time (24-hour time) with dashes (e.g. 2016-07-25-14-30-10-211)public static final DateTimeFormatter FRIENDLY_DATE_TIME
DateTime
as user-friendly date with 24 hour time (e.g. 15:23 on 05 Sep 2016)public static final DateTimeFormatter DATE_TIME_LOG
DateTime
as date/time for logging (e.g. 2016.07.25 12:23:16.123 BST")Copyright © 2017. All rights reserved.