[#BloombergLP-baljsn-JsonFormatter_Util-valueAsJson-025]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/JsonFormatter_Util.adoc[JsonFormatter&lowbar;Util]::xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-00.adoc[valueAsJson]&lt;xref:BloombergLP/bdlt/Date.adoc[Date]&gt;
:relfileprefix: ../../../
:mrdocs:

Load the JSON representation of the `Date` `value` into `json`&period;

== Synopsis

Declared in `&lt;baljsn&lowbar;jsonformatter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
int
xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-00.adoc[valueAsJson]&lt;Date&gt;(
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json,
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& value,
    xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options);
----

== Description

Return 0 on success and a non&hyphen;zero value otherwise&period;

== Return Value

0 on success and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *json*
| JSON object to receive the encoded value
| *value*
| date value to encode
| *options*
| optional encoding options&semi; null uses defaults
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
