Editar

Partilhar via


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

Formatting
Power Apps component framework API reference
Power Apps component framework overview