[#BloombergLP-bdld-Datum-createDatetime]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/Datum.adoc[Datum]::createDatetime
:relfileprefix: ../../../
:mrdocs:

Return a datum holding the specified datetime `value`&period;

== Synopsis

Declared in `&lt;bdld&lowbar;datum&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdld/Datum.adoc[Datum]
createDatetime(
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& value,
    xref:BloombergLP/bdld/Datum/AllocatorType.adoc[AllocatorType] const& allocator);
----

== Description

Return, by value, a datum having the specified `Datetime` `value`, using the specified `allocator` to supply memory (if needed)&period;

== Return Value

a datum holding the specified datetime `value`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| datetime value to store
| *allocator*
| memory allocator to use
|===


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