lundi 1 avril 2019

How to create a date and time format form in laravel 5 using the form request feature?

I'm creating a new project in laravel and I have this creation of events where I needed to add a date and time, but I only got form with only a date and without time. I am new to laravel php and I'm clueless and not familiar with this.

{!! Form::datetime('start_date', null, ['class' => 'form-control']) !!}

I already tried changing it to datetime but it only changes to being a textbox. And none of my research really help me with the change. O maybe I am looking in a wrong place but I'm stuck with this.

Here is my codes.

<div class="col-xs-3 col-sm-3 col-md-3">
                    <div class="form-group">
                        {!! Form::label('start_date','Start Date:') !!}
                        <div class="">
                        {!! Form::date('start_date', null, ['class' => 'form-control']) !!}
                        </div>
                    </div>
                </div>

Here is the sample image of my code if I use the Form::date

Form::date

I want it to be like this sample.

DateTime

What codes or alternative should I use?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2JWKLZ3
via IFTTT

Aucun commentaire:

Enregistrer un commentaire