I have a question for you I try but not received...I need to insert date into database: My script:
<script>
$(document).ready(function() {
$("#datepicker").datepicker({
format: 'yyyy-mm-dd'
});
})
My html:
<div class="form-group">
<label>Date:</label>
<input class="form-control marg-left-10" name="date" id="datepicker">
</div>
My php:
$date = date('Y-m-d H:i:s', strtotime($this->input->post['date']));
data is inserted into database : 1962-12-31. Please help me.