Time.format(dateStyle,timeStyle)

Formats this date-time with the given date and time formatting styles for the default locale. Available styles for date and time are: DEFAULT, FULL, LONG, SHORT For example, for US locale: display d1.format(dateStyle: Time.FULL, timeStyle : Time.LONG) shows: "Tuesday, March 29, 2005 2:10:19 PM ART"

Arguments:

Name Type Description Mode
dateStyle Int the given date formatting style. in
timeStyle Int the given time formatting style. in