mercredi 22 mai 2019

Laravel Collective Datetime

I am using Laravel5.6 and the LaravelCollective form and html helpers.

I have a field in my database called activity_datetime_from which is of type datetime.

In my view I am using

 <div class="form-group">
        {!!Form::label('activity_datetime_to','Activity To*:',['class'=>'col-md-2'])!!}
        <div class="col-md-10">
          <p></p>
          {!!Form::date('activity_datetime_to', null, ['class'=>'form-control','activity_datetime_to'])!!}
        </div>
      </div>

This just produces a date selector and when submitted enters 2017-01-12 00:00:00 into the database.

I want date and time both there. Please help me to resolve this issue. Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire