Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

JsonDateKind Enum

Definition

Namespace:
Microsoft.PowerShell.Commands
Assembly:
Microsoft.PowerShell.Commands.Utility.dll
Package:
Microsoft.PowerShell.Commands.Utility v7.5.6
Package:
Microsoft.PowerShell.Commands.Utility v7.6.1

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Enums for ConvertFrom-Json -DateKind parameter.

public enum JsonDateKind
type JsonDateKind = 
Public Enum JsonDateKind
Inheritance
JsonDateKind

Fields

Name Value Description
Default 0

DateTime values are returned as a DateTime with the Kind representing the time zone in the raw string.

Local 1

DateTime values are returned as the Local kind representation of the value.

Utc 2

DateTime values are returned as the UTC kind representation of the value.

Offset 3

DateTime values are returned as a DateTimeOffset value preserving the timezone information.

String 4

DateTime values are returned as raw strings.

Applies to