SBM ModScript Reference → Programming SBM ModScript → Constants → DateTimeAttributeConstants
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().
SBM ModScript version: 11.3.
var t = TimeT(1517620926); var s = t.FormatDateText( DateTimeAttributeConstants.DATETIME, CreateTimeZone("MST"), CreateLocale("en_US"), DateFormatConstants.FROM_LOCALE, TimeFormatConstants.TWELVE_HOUR, DateFormatFromLocaleConstants.SHORT ); Ext.WriteStream( s );
Result:
2/2/18 6:22:06 PM
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.