Show / Hide Table of Contents

Method DateTime

| Improve this Doc View Source

DateTime(Nullable<DateTime>)

Converts a DateTime value into JSON value.

Declaration
public static JsonValue DateTime(DateTime? x)
Parameters
Type Name Description
System.Nullable<System.DateTime> x

The value.

Returns
Type Description
JsonValue

The result JSON value.

| Improve this Doc View Source

DateTime(Nullable<DateTime>, String)

Converts a char value into JSON value, with specified format.

Declaration
public static JsonValue DateTime(DateTime? x, string format)
Parameters
Type Name Description
System.Nullable<System.DateTime> x

The value.

System.String format

The format.

Returns
Type Description
JsonValue

The result JSON value.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest