<turbo-stream action="update" target="wiki_99_subpage_174_info"><template>
<h1>TODATETIME(date, month, year, hour, minute, second);</h1>
<p>Todatetime can be used if you need to transfer date, month, year, hour, minute and seconds to a single field in the destination.</p>
<p>&nbsp;</p>
<p><strong>Example:</strong></p>
<blockquote>
<p>You need to transfer all the above fields sDay,sMonth,SYear,sHour,sMinute,sSecond into one Datetimefield.</p>
<p><br>sDay=15<br>sMonth=05<br>sYear=2009</p>
<p>sHour = 12<br>sMinute= 44<br>sSecond= 23</p>
<p>&nbsp;</p>
<p>##TODATETIME("sDay","sMonth","sYear","sHour","sMinute","sSecond")<br>Returns the value = 20090515 12:44:23 as a datetime.</p>
<p>&nbsp;</p>
<p>If that format does not match the date in the destination Data Base, you can add a FORMAT formula:</p>
<p>&nbsp;</p>
<p>##FORMAT(TODATETIME("sDay","sMonth","sYear","sHour","sMinute","sSecond"),'%d-%m-y%:H%.M.%S')<br>Returns the value 2009-05-15:12.44.23</p>
</blockquote>
<p>&nbsp;</p>
</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
