<?php
if (!isset($c_show_datetime) || (int)$c_show_datetime === 1){
	print "
<div class='form-row'>
	<label for='date' class='form-label'>".LABEL_DATETIME."</label>
	<div class='form-cols'>
		<div class='form-col form-medium'>
			<div class='form-controls'>
				<input type='datetime-local' class='field' name='date' id='date' value='".$datetime."'>
			</div><!-- /.form-controls -->
		</div><!-- /.form-col -->
	</div><!-- /.form-cols -->
</div><!-- /.form-row -->

<hr/>";
} else {
	print "<input type='hidden' name='date' id='date' value='".$datetime."'>";
}