[#BloombergLP-bdlt-DateUtil-convertFromYYYYMMDD]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DateUtil.adoc[DateUtil]::convertFromYYYYMMDD
:relfileprefix: ../../../
:mrdocs:

Load `&ast;result` from the &quot;YYYYMMDD&quot; encoding of `yyyymmddValue`&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;dateutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
convertFromYYYYMMDD(
    xref:BloombergLP/bdlt/Date.adoc[Date]* result,
    int yyyymmddValue);
----

== Description

Load, into the specified `result`, the `Date` value represented by the specified `yyyymmddValue` in the &quot;YYYYMMDD&quot; format&period; Return 0 on success, and a non&hyphen;zero value, with no effect on `result`, if `yyyymmddValue` does not represent a valid `Date`&period;

== Return Value

0 on success, non&hyphen;zero on failure

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| destination for the decoded date
| *yyyymmddValue*
| integer in YYYYMMDD form
|===


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