FieldtypeBusinessHours by

ProcessWire Fieldtype for entering business hours (opening hours)

Fieldtype Business Hours

ProcessWire Fieldtype for entering business hours (opening hours)

Input format

Per day one or multiple (comma separated) ranges can be entered:


9:00-12:00, 13:00-17:30

Leave a day empty when closed on that day

Usage in templates

Days are from 1 to 7 where 1 is Monday and 7 is Sunday (ISO-8601)

echo $page->field_name->isNowOpen() ? 'Now open' : 'Now closed';

if($page->field_name[1] == null) { echo 'Closed on Monday'; }

if($page->field_name[2]->inRange('11:00')) { echo 'Tuesday at 11:00 open'; }

echo $page->field_name[1];

echo $page->field_name[1]->getEntries()->getFrom()->format('H:i');

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #526
    In the 526th issue of ProcessWire Weekly we'll cover the latest news from the ProcessWire community: newly open sourced Functional Fields module, new site profile to accompany RockFrontend, and more. Read on! / 8 June 2024
  • ProFields Table Field with Actions support
    This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
    Blog / 12 April 2024
  • Subscribe to weekly ProcessWire news

“We chose ProcessWire because of its excellent architecture, modular extensibility and the internal API. The CMS offers the necessary flexibility and performance for such a complex website like ProcessWire offers options that are only available for larger systems, such as Drupal, and allows a much slimmer development process.” —xport communication GmbH