ime</code>s
by calling <code class="code">datetime.ofDatenum</code> or <code class="code">datetime(x, 'ConvertFrom', 'datenum')</code>, or you
can convert the <code class="code">datetime</code>s to datenums by accessing its <code class="code">dnums</code> field with
<code class="code">x.dnums</code>.
</p>
<p>Examples:
</p>
<div class="example">
<pre class="example-preformatted">dt = datetime('2011-03-04')
dn = datenum('2017-01-01')
[dt dn]
    &rArr; error: datenum: expected date vector containing [YEAR, MO