Skip to content

Instantly share code, notes, and snippets.

@asakapab0i
Created December 13, 2013 03:55
Show Gist options
  • Save asakapab0i/7939562 to your computer and use it in GitHub Desktop.
Save asakapab0i/7939562 to your computer and use it in GitHub Desktop.
<?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