Valid Date Formats
In the MobileSmith platform, you can upload data into the MobileSmith platform via CSV file. You can also use data from a remote source (i.e. the data is not stored in the MobileSmith platform). In both cases, you might have data that is a date, a time, or both. The MobileSmith platform can recognize this data and allow date-and-time-related functionality, such as the ability for the app user to add an event to his phone's calendar. In order for the platform to recognize the data, it must be in one of the accepted formats, which are listed below.
- YYYY-MM-DD
- YYYY-MM-DD HH:MM
- YYYY-MM-DD HH:MM:SS
- YYYY-MM-DD HH:MM:SS.SSS
- YYYY-MM-DDTHH:MM
- YYYY-MM-DDTHH:MM:SS
- YYYY-MM-DDTHH:MM:SS.SSS
- HH:MM
- HH:MM:SS
- HH:MM:SS.SSS
- now
- DDDDDDDDDD
These examples will use April 1st, 2013 at 1:15am EST as a sample reference date. NOTE: the delimiter between the year, month, and day in the date format could be represented in the date value as a space, a dash, or a slash character, but the data value may not omit the delimiter between the the parts of the date all together. For example, '2013 04 01' is a valid date format, but '20130401' is not a valid format.
Date Format | Date Example |
---|---|
yyyy MM dd Z | 2013/04/01 -0400 |
yyyy MM dd | 2013/04/01 |
yyyy MM d | 2013/04/1 |
MM dd yyyy | 04/01/2013 |
MMMM dd yyyy | April 01, 2013 |
M dd yyyy | 4/01/2013 |
M d yyyy | 4/1/2013 |
Time Format | Time Example |
---|---|
hh:mm:ss a | 01:15:00 AM |
HH:mm:ss | 13:15:00 |
hh:mm a | 01:15 AM |
HH:mm | 13:15 |
HH:mm:ss Z | 13:15:00 -0400 |
HH:mm Z | 13:15 -0400 |
DateTime Format | DateTime Example |
---|---|
yyyy MM dd HH:mm:ss Z | 2013 04 01 13:15:00 -0400 |
yyyy MM dd HH:mm:ss | 2013 04 01 13:15:00 |
yyyy MM dd HH:mm Z | 2013 04 01 13:15 -0400 |
yyyy MM dd HH:mm | 2013 04 01 13:15 |
yyyy MM dd'T'HH:mm:ssZZZZZ | 2013 04 01T13:15:00-0400 |
EEE dd MMM yyyy HH:mm:ss Z | Mon 01 Apr 2013 13:15:00 -0400 |
EEE d MMM yyyy HH:mm:ss Z | Mon 1 Apr 2013 13:15:00 -0400 |
yyyy MM dd hh:mm:ss a | 2013 04 01 01:15:00 PM |
yyyy MM dd hh:mm a | 2013 04 01 01:15 PM |
yyyy MM dd hh:mm:ss a | 2013 04 01 01:15:00 PM |
MM dd yyyy hh:mm:ss a | 04 01 2013 01:15:00 PM |
MM dd yyyy HH:mm:ss | 04 01 2013 13:15:00 |
M dd yyyy hh:mm:ss a | 4 01 2013 01:15:00 PM |
M dd yyyy HH:mm:ss | 4 01 2013 13:15:00 |
MMMM dd yyyy hh:mm a | April 01 2013 01:15 PM |
MMMM dd yyyy HH:mm | April 01 2013 13:15 |
MM dd yyyy hh:mm a | 04 01 2013 01:15 PM |
MM dd yyyy HH:mm | 04 01 2013 13:15 |
M dd yyyy hh:mm a | 4 01 2013 01:15 PM |
M dd yyyy HH:mm | 4 01 2013 13:15 |
M dd yy hh:mm a | 4 01 13 01:15 PM |
M dd yy HH:mm | 4 01 13 13:15 |