formatDateShort
Returns a string represents the datetime
value after being formatted. Result pattern is based on culture. In USA it is represented as MM/DD/YYYY
.
Syntax
context.formatting.formatDateShort(value, includeTime);
Available for
Model-driven and canvas apps
Parameters
Parameter Name | Type | Required | Description |
---|---|---|---|
value | Date |
Yes | Value Date to format. |
includeTime | boolean |
Yes | Whether to show time in formatted value. |
Return Value
Type: string
Related articles
Formatting
Power Apps component framework API reference
Power Apps component framework overview
Palaute
https://aka.ms/ContentUserFeedback.
Tulossa pian: Vuoden 2024 aikana poistamme asteittain GitHub Issuesin käytöstä sisällön palautemekanismina ja korvaamme sen uudella palautejärjestelmällä. Lisätietoja on täällä:Lähetä ja näytä palaute kohteelle