Welcome Guest, Not a member yet? Register   Sign In
Manage dates from a form
#2

Personaly, in the database I use ISO forma yyyy-MM-DD

and I use bootstrap css and bootstrap doo all the hard job. I have a smal calendar, it works fine with mobile. just

On my view I have this example

<div class="form-group row">

<span class="col-sm-2 col-form-label" >Date</span>

<div class="col-10">
<?php
if ($action == "add"){ $tfdate = date('Y-m-d');} else{$tfdate = $r['tfdate'];}
$data = array(
'name' => 'tfdate',
'type' => 'date',
'value' => $tfdate,
'style' => 'form-control'
);
echo form_input($data);
?>
</div>
</div>
Reply


Messages In This Thread
Manage dates from a form - by Marcolino92 - 04-27-2020, 01:28 AM
RE: Manage dates from a form - by kris2 - 04-27-2020, 09:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB