Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
//get date from db
$date = time();
?>
<div class="controls">
<?php echo form_error('event-start') ?>
<input value="<?php echo date('Y-m-d', strtotime($date)); ?>" required id="event-start" name="event-start" type="date" placeholder="" class="input-medium">
<input value="<?php echo date('H:i:s', strtotime($date); ?>" required id="event-start-time" name="event-start-time" type="time" placeholder="" class="input-medium">
<p class="help-block"></p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.