formatUTCDateTimeToUserDate

Returns a date that represents the UTC value after being formatted.

Syntax

context.formatting.formatUTCDateTimeToUserDate(utcDateTime, behavior);

Available for

Model-driven and canvas apps

Parameters

Parameter Name Type Required Description
utcDateTime Date Yes The date to be formatted.
behavior DateTimeFieldBehavior No The behavior of the datetime object to be formatted.

Return Value

Type: Date

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