FusionCMS is currently in an open beta state and under heavy active development.

Date/Time

Store a date (and time) value. The value will be stored as a Carbon timestamp for additional formatting.


Template Usage

Date/time fields are Carbon objects an can have formatting applied to them directly:

<ul>
  <li>{{ $entry->datetime }}</li>
  <li>{{ $entry->datetime->toFormattedDateString() }}</li>
  <li>{{ $entry->datetime->toDayDateTimeString() }}</li>
</ul>

Settings

Setting Description
Name User-friendly identifier.
Handle Developer-friendly identifier.
Validation Rules Laravel-specific validation rules view docs
Time Options Date only or Date and Time.
Date Format Date formatting pattern*.

  • Carbon - A simple PHP API extension for DateTime.
  • Flatpickr - a lightweight and powerful datetime picker.
Have questions?

We're always happy to help with code or other questions you might have. Contact support or chat live with us on Discord.

Last edited on Friday, June 26, 2020 (1 year ago)