mardi 19 avril 2016

How to display current date in laravel 5.1

i am new in laravel . need help how to display current date in laravel 5.1 ..? this is my form page:

<div class="col-sm-6 padding-5px">
                                <div class="form-group">
                                    <div class="col-xs-12"> 
                                        {!! Form::label('dato','date here', array('class' => 'control-label')) !!}
                                        {!! Form::text('dato',Carbon\Carbon::today()->format('d.m.Y'),array('class'=>'form-control datepicker','data-date-format'=>'dd.mm.yyyy','readonly'=>'true')) !!}

                                </div>
                                </div> 
                            </div>



via Chebli Mohamed

1 commentaire:

officalseo786@gmail.com a dit…

How To Get Current Date And Time With Ajax in Laravel

we can fetch current date and time using controller Jquery and Ajax response. Here we use date function and give some format of the date i want and pass the result via json to the ajax and finally you can see the format..

For More Info:- How To Get Current Date And Time With Ajax in Laravel

Enregistrer un commentaire