<turbo-stream action="update" target="wiki_99_subpage_175_info"><template>
<h1>TOTIME(hour, minute, second);</h1>
<p>Totime can be used if you need to transfer hour, minute and seconds to a single field in the destination.</p>
<p>&nbsp;</p>
<p><strong>Example:</strong></p>
<blockquote>
<p>Source holds hours, minutes and seconds in separate fields, and needs to be transferred into a Time field in the destination.</p>
<p>&nbsp;</p>
<p>sHour = 12<br>sMinute= 44<br>sSecond= 23</p>
<p>&nbsp;</p>
<p>##TOTIME("sHour", "sMinute", "sSecond")<br>Return Value= 12:44:23 as a Time</p>
<p>&nbsp;</p>
</blockquote>
<p>&nbsp;<strong>Example of TODATE and COPY:</strong></p>
<blockquote>
<p>##TODATE(COPY(Date,6,2),COPY(Date,4,2),COPY(Date,0,4));</p>
<p>&nbsp;</p>
<p>In the source table we have the field "Date" which contains the date format YYYYMMDD (for example: 20090515). The corresponding field in the destination table contains the date format DDMMYYYY. <br>In the source field, Copy will go to position 6 and copy the following two signs (DD - 15) to the destination field. Then it will go to position 4 and copy the following 2 signs (MM - 05). Then it will go to position 0 and copy the following 4 signs (YYYY - 2009).</p>
</blockquote>
</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
