Developer

Date and Time

You can format date and time as required.

For example, this fragment applies long format to time and short format to the date:
<!-- Date and Time -->
<UIElement type="label">
<!-- $_now() returns the current date and time - see for details on supported functions -->
  <P pid="text" value="{$_now()}" platform="iOS" />
  <P pid="width" value="75%" />
  <P pid="margin_bottom" value="5%" />
  <P pid="halign" value="center" />
  <!--  Date/Time Formatter Output Format   -->
  <Format type="date" pattern="?" platform="iOS">
  <!--  Values for Date and Time Style reflect the values listed in the NSDateFormatterStyle enum  -->
    <P pid="dateStyle" value="2" />   <!--  Medium Style  -->
    <P pid="timeStyle" value="3" /> <!--  Long Style  -->
  </Format>
</UIElement>
Possible values for NSDateFormatterStyle as a reference include:
typedef NS_ENUM(NSUInteger, NSDateFormatterStyle) 
{    // date and time format styles
    NSDateFormatterNoStyle = kCFDateFormatterNoStyle, = 0
    NSDateFormatterShortStyle = kCFDateFormatterShortStyle, = 1
    NSDateFormatterMediumStyle = kCFDateFormatterMediumStyle, = 2
    NSDateFormatterLongStyle = kCFDateFormatterLongStyle, = 3
    NSDateFormatterFullStyle = kCFDateFormatterFullStyle = 4
};
Alternatively, set dateStyle or timeStyle to 0 if you do not want it to appear.