Date fields allow you to collect and display date and time information.
Date
and DateTime
. As you may have guessed, the Date
field does not store time information while the DateTime
field does:
Date
fields and 1 second for DateTime
fields. You may modify the “step” value for both of these fields by providing an integer or Carbon\CarbonInterval
to the field’s step
methods:
Date
or DateTime
fields. This can be done by passing a valid date expression, a date format supported by strtotime
, or an instance of Carbon\CarbonInterface
to the min
and max
methods of these fields:
timezone
configuration option in your application’s config/app.php
configuration file.
Nova::userTimezone
method. Typically you should call this method in the boot
method of your application’s NovaServiceProvider
: