Google Apps Script

Enum DateTimeFormat

Date and time format constants for widgets such as DateBox.

These correspond to the predefined constants from the Google Web Toolkit. You can read more about these constants here.

Properties

PropertyTypeDescription
ISO_8601EnumUse the ISO 8601 standard format, for example, "2013-03-04T00:00:00.000-05:00".
RFC_2822EnumUse the RFC 2822 standard format, for example, "Mon, 4 Mar 2013 00:00:00 -0500".
DATE_FULLEnumUse "DayOfWeek, YYYY Month DD" format, for example, "Monday, 2013 March 04".
DATE_LONGEnumUse "YYYY Month D" format, for example, "2013 March 4".
DATE_MEDIUMEnumUse "YYYY Mon D" format, for example, "2013 Mar 4".
DATE_SHORTEnumUse "YYYY-MM-DD" format, for example, "2013-03-04".
TIME_FULLEnumUse "HH:MM:SS UTC-#" format, for example, "01:30:00 UTC-5".
TIME_LONGEnumUse "HH:MM:SS UTC-#" format, for example, "01:30:00 UTC-5".
TIME_MEDIUMEnumUse "HH:MM:SS" format, for example, "01:30:00".
TIME_SHORTEnumUse "HH:MM" format, for example, "01:30".
DATE_TIME_FULLEnumUse "DayOfWeek, YYYY Month DD HH:MM:SS UTC-#" format, for example, "Monday, 2013 March 04 00:00:00 UTC-5".
DATE_TIME_LONGEnumUse "YYYY Month D HH:MM:SS UTC-#" format, for example, "2013 March 4 00:00:00 UTC-5".
DATE_TIME_MEDIUMEnumUse "YYYY Mon D HH:MM:SS" format, for example, "2013 Mar 4 00:00:00".
DATE_TIME_SHORTEnumUse "YYYY-MM-DD HH:MM" format, for example, "2013-03-04 00:00".
DAYEnumUse the day number, for example, "4" for the 4th of the month.
HOUR_MINUTEEnumUse "HH:MM AM/PM" format, for example, "12:00 AM".
HOUR_MINUTE_SECONDEnumUse "HH:MM:SS AM/PM" format, for example, "12:00:00 AM".
HOUR24_MINUTEEnumUse "HH:MM" format, for example, "14:30".
HOUR24_MINUTE_SECONDEnumUse "HH:MM:SS" format, for example, "14:30:00".
MINUTE_SECONDEnumUse "MM:SS" format, for example, "30:00".
MONTHEnumUse the full month, for example, "March".
MONTH_ABBREnumUse the abbreviated month, for example, "Mar".
MONTH_ABBR_DAYEnumUse "Mon D" format, for example, "Mar 4".
MONTH_DAYEnumUse "Month D" format, for example, "March 4".
MONTH_NUM_DAYEnumUse "M-D" format, for example, "3-4".
MONTH_WEEKDAY_DAYEnumUse "DayOfWeek Month D" format, for example, "Monday March 4".
YEAREnumUse "YYYY" format, for example, "2013".
YEAR_MONTHEnumUse "YYYY Month" format, for example, "2013 March".
YEAR_MONTH_ABBREnumUse "YYYY Mon" format, for example, "2013 Mar".
YEAR_MONTH_ABBR_DAYEnumUse "YYYY Mon D" format, for example, "2013 Mar 4".
YEAR_MONTH_DAYEnumUse "YYYY Month D" format, for example, "2013 March 4".
YEAR_MONTH_NUMEnumUse "YYYY-M" format, for example, "2013-3".
YEAR_MONTH_NUM_DAYEnumUse "YYYY-M-D" format, for example, "2013-3-4".
YEAR_MONTH_WEEKDAY_DAYEnumUse "Wkdy, YYYY Mon D" format, for example, "Mon, 2013 Mar 4".
YEAR_QUARTEREnumUse "YYYY ### quarter" format, for example, "2013 1st quarter".
YEAR_QUARTER_ABBREnumUse "YYYY Q#" format, for example, "2013 Q1".

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.