Converting dateTime to different format : <p>There is a <code>dateTime</code> in the format of "dd/mm/yyyy hh:mm:ss tt". A <code>string</code> is required to be created from this, in the format of "yyyyMMddHHmmssfff". </p>

<pre><code>string timestamp = (dateTimeUTC.Year).ToString() +  (dateTimeUTC.Month).ToString() + (dateTimeUTC.Day).ToString() + (dateTimeUTC.Hour).ToString() + (dateTimeUTC.Minute).ToString() +
                           (dateTimeUTC.Second).ToString() + (dateTimeUTC.Millisecond).ToString();
</code></pre>

<p>The problem with this code is that if any of the digits for month or day are 0-9, there is no 0 in front of the digit. For example, suppose we have the <code>dateTime</code> 1/26/2020 11:59:53 PM. This must be converted to 20200126235651100. Instead it will be 20201262359530.</p>
