Table of Contents
API reference

Constructor DateTimeFormatAttribute

Namespace
DisCatSharp.Common.Serialization
Assembly
DisCatSharp.Common.dll

DateTimeFormatAttribute(DateTimeFormatKind)

Specifies a predefined format to use.

public DateTimeFormatAttribute(DateTimeFormatKind kind)

Parameters

kind DateTimeFormatKind

Predefined format kind to use.

DateTimeFormatAttribute(string)

Specifies a custom format to use.

See https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings for more details.

public DateTimeFormatAttribute(string format)

Parameters

format string

Custom format string to use.