JSONWriter EncodeDateTime Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Writes a string in JSON format (a la "JSON encode string") - using quotes and escaping charecters that need it

Namespace: NFX.Serialization.JSON
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public static void EncodeDateTime(
	TextWriter wri,
	DateTime data,
	JSONWritingOptions opt = null,
	Nullable<TimeSpan> utcOffset = null
)

Parameters

wri
Type: OnlineSystem.IO TextWriter
TextWriter instance to append data into
data
Type: OnlineSystem DateTime
Original string to encode as JSON
opt (Optional)
Type: NFX.Serialization.JSON JSONWritingOptions
JSONWriting options instance, if omitted then JSONWritingOptions.Compact is used
utcOffset (Optional)
Type: OnlineSystem Nullable OnlineTimeSpan 
UTC offset override. If not supplied then offset form local time zone is used
See Also