Time.getDateFormat(parts,style)

Returns an appropriate DateFormat based on the time object parts, an style. This DateFormat obtained can be used to format another Time object using the format method. Possible Time parts to get the format: DATE_ONLY, TIME_ONLY, DATE_TIME Possible styles : SHORT, DEFAULT, LONG, FULL

Arguments:

Name Type Description Mode
parts Int : Time object parts to include in the formatter to obtain in
style Int : Style to apply to the formatter in