Customizing Date and Time Formats

In the MobileSmith platform, you can customize how your app displays dates and times.

Watch this video to see how it's done, or follow the steps below:

 

iPhone

 

 

 

Here you can see how the app in the above video displays on both device types.

 

 

Droid

 

On any List or Detail canvas, you can customize the display of the following field types:

  • Date & Time
  • Date
  • Time

 

To do so, place the desired field on the canvas, click the field, then go to the Properties box on the right side and go to the Format tab.

 

There is a dropdown menu where you can choose among Short, Medium, and Long.  This affects what text is used for the date fields (time fields are unaffected).  For example, the first month of the year is displayed differently with each setting:

  • Short: 1
  • Medium: Jan
  • Long: January

 

 

No format

 

 

Use the "Enter Format Text" box, along with the field buttons, to construct your display string.  When you do that, the current date and/or time will be displayed next to "Example" so you can see what it looks like.

**NOTE** If this box is left blank, the app will simply display the raw data for this field.

Short format

 

 

 

 

Change the dropdown to see how your date format looks with Short, Medium, and Long.

Medium format

 

Long format


**NOTE** When you copy a field's layout and paste it onto another field, the date/time format is not copied.