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
kindDateTimeFormatKindPredefined 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
formatstringCustom format string to use.