SBM ModScript Reference → Programming SBM ModScript → Constants → TimeFormatConstants
Identifies the format of the text while parsing dates, or what output format to use when formatting dates with TimeT.ParseDateText(), TimeT.FormatDateText(), TimeMillis.ParseDateText(), and TimeMillis.FormatDateText(). Ignored when DateFormatConstants is used with FROM_LOCALE.
SBM ModScript version: 11.3.
var t = TimeT(1517620926); var s = t.FormatDateText( DateTimeAttributeConstants.DATETIME, CreateTimeZone("MST"), CreateLocale("en_US"), DateFormatConstants.MM_DD_YYYY, TimeFormatConstants.TWELVE_HOUR, DateFormatFromLocaleConstants.SHORT ); Ext.WriteStream( s );
Result:
02/02/2018 06:22:06 PM
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.