You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/functions/function-text.md
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -69,12 +69,13 @@ If a number has more digits to the right of the decimal point than there are pla
69
69
|**yy**| Displays the year as a two-digit number. |
70
70
|**yyyy**| Displays the year as a four-digit number. |
71
71
|**h**| Displays the hour as a number without a leading zero. |
72
-
|**hh**| Displays the hour as a number with a leading zero when appropriate. If the format contains **AM** or **PM**, the hour is shown based on the 12-hour clock. Otherwise, the hour is shown based on the 24-hour clock. |
73
-
|**m**| Displays the minute as a number without a leading zero.<br>The **m** or the **mm** code must appear immediately after the **h** or **hh** code or immediately before the **ss** code; otherwise, **Text** returns the month instead of minutes. ||**mm**| Displays the minute as a number with a leading zero when appropriate. <br> The **m** or the **mm** placeholder must appear immediately after the **h** or **hh** placeholder or immediately before the **ss** placeholder. Otherwise, **Text** returns the month instead of minutes. ||
74
-
|**s**| Displays the second as a number without a leading zero. |
75
-
|**ss**| Displays the second as a number with a leading zero when appropriate. |
72
+
|**hh**| Displays the hour as a number with a leading zero when appropriate. If the format contains **AM** or **PM**, the hour is shown based on the 12-hour clock. Otherwise, the hour is shown based on the 24-hour clock. |
73
+
|**m**| Displays the minute as a number without a leading zero.<br>The **m** or the **mm** code must appear immediately after the **h** or **hh** code or immediately before the **ss** code; otherwise, **Text** returns the month instead of minutes. |
74
+
|**mm**| Displays the minute as a number with a leading zero when appropriate. <br> The **m** or the **mm** placeholder must appear immediately after the **h** or **hh** placeholder or immediately before the **ss** placeholder. Otherwise, **Text** returns the month instead of minutes. |
75
+
|**s**| Displays the second as a number without a leading zero. |
76
+
|**ss**| Displays the second as a number with a leading zero when appropriate. |
76
77
|**f**| Displays the fractions of seconds. |
77
-
|**AM/PM**, **am/pm**, **A/P**, **a/p**| Displays the hour based on a 12-hour clock. **Text** returns "AM", "am", "A", or "a" for times from midnight until noon and "PM", "pm", "P", or "p" for times from noon until midnight |
78
+
|**AM/PM**, **a/p**| Displays the hour based on a 12-hour clock. **Text** returns "AM"or "a" for times from midnight until noon and "PM" or "p" for times from noon until midnight |
78
79
79
80
### Literal placeholders
80
81
You can include any of these characters in your format string. They will appear in the result of **Text** as is. Additional characters are reserved for future placeholders, so you shouldn't use them.
0 commit comments