Changing the Date Format Using the staffpms File
Line 5 of the staffpms file determines how the date is displayed in iProcess Engine. (The following example is for an iProcess Engine for Windows).
%2d/%2d/%4d\/\%s%s %s, %s\dmy\wdmy\%2d:%2d\:\ AM\ PM\Week\NYYYYYN
Individual entries are separated by a backslash character (\). The following table describes the meaning of each entry.
|
Position |
Example |
Description |
|
1 |
|
The number of characters used to specify each component of the date. For example, 2 characters to denote the date, 2 for the month and 4 for the year. |
|
2 |
|
The date delimiter. |
|
3 |
|
Not used. |
|
4 |
|
The order of the date format. |
|
5 |
|
Not used. |
|
6 |
|
The time format. The default is 24-hour format, for example, |
|
7 |
|
The time delimiter. |
|
8 |
|
Not used. |
|
9 |
|
Not used. |
|
10 |
|
Not used. |
|
11 |
|
The definition of the working week, running Sunday to Saturday. Y indicates a working day, N a non-working day. For example, Monday to Friday. For more information, see Specifying the Working Week. |
Changing the Order of the Date Format
To change the format, for example, to yyyy/mm/dd:
| 1. | Amend the date order entry (position 4) to be ymd. |
| 2. | Amend the number of characters entry (position 1) to be %4d/%2d/%2d. |
%4d/%2d/%2d\/\%s%s %s, %s\ymd\wdmy\%2d:%2d\:\ AM\ PM\Week\NYYYYYN
Changing the Date Delimiter
To change the date delimiter, for example to a hyphen character, amend the number of characters (position 1) and date delimiter (position 2) entries as shown.
%2d-%2d-%4d\-\%s%s %s, %s\dmy\wdmy\%2d:%2d\:\ AM\ PM\Week\NYYYYYN