Master Addons
  • Widgets
    • Changelogs
      Source Code NEW PRO
      Caldera Forms
      Logo Slider
      Table of Contents
      Gravity Forms
      Transforms PRO
      Restrict Content PRO
      Pricing Table
      Ninja Form
      Mailchimp
      Tooltip
      Popup Trigger NEW PRO
      Which Element NEW
      Creative Button
      Creative Links NEW
      Domain Search HOT PRO
      Dual Heading HOT
      Flipbox
      Animated Gradient BG HOT PRO
      Image Hotspot PRO
      Infobox
      News Ticker PRO
      Particles
      Progress Bar
      Off-Canvas Content NEW PRO
      Reading Progress Bar HOT
      Custom JS
      Blockquote
      Counter Up
      Image Hover Effects
      Reveal NEW PRO
      Rellax PRO
      Positioning
      Image Comparison
      Tabs
      Toggle Content HOT PRO
      Post/Page Duplicator FREE
      Floating Effects PRO
      Mega Menu HOT
      Custom CSS HOT
      Gradient Headline
      Advanced Image
      Nav Menu
      Tooltips
      Comparison Table PRO
      Glassmorphism
      Featured Product PRO
      Image Carouse
      Gallery Slider NEW PRO
      Dynamic Tags NEW
      Countdown Timer
      Current Time
      Patterns
      Wrapper Link
      Timeline
      Team Member
      Contact Form 7
      Advanced Accordion
      Animated Headlines
      Blog
      Business Hours
      Call To Action
      Progress Bars
      Background Slider
      Team Slider
      Dynamic Table
      Grid Line PRO
      WP Forms
      Search
      We Form
      Entrance Animation NEW PRO
      Display Conditions PRO
      Filterable Image Gallery
      WP Forms
      Custom Breakpoints NEW
  • Features
    • Theme Builder

      Design site-wide templates for a consistent look across every page of your website.

      Popup Builder

      Create engaging popups, modals, and announcement bars - to capture leads.

      Widget Builder

      Expand Elementor with advanced custom widgets to build more dynamic layouts.

      Mega Menu Builder

      Create multi-column menus with icons and images for superior navigation.

      Custom Css

      Apply your own CSS for pixel-perfect styling beyond default design options.

      Dynamic Tags

      Insert dynamic content like post titles and custom fields directly into designs.

      Display Conditions

      Control element visibility based on user role, device, time, and other rules.

      Icons Library

      Choose from thousands of built-in icons to enhance visuals and consistency.

      Animation

      Add scroll, hover, entrance, and much more animations to bring designs to life.
  • Template Kits
    • Template Kits

      Professionally designed full-page template Kit. Import and customize in seconds.

      Ready Sections

      Pre-built content sections and rows. Drag, drop, and customize instantly.

      Ready Popups

      Different types of High-converting popup designs. Import and launch quickly.

      Ready Pages

      Complete page layouts for any purpose. Start editing immediately.

      Ready Header

      Multiple modern header designs. Import and adapt to your brand.

      Ready Footer

      Fully designed footers for different websites. Add functionality and style in clicks.
  • Brands
    • WP Adminify

      WP Adminify

      Take control of your WordPress dashboard. Customize the admin experience.
      Admin Bar Editor

      Admin Bar Editor

      Customize the WordPress admin bar for a cleaner, more personalized workspace.
      Loginfy

      Loginfy

      Customize your WordPress login page with branding, styles, and security enhancements.

      Rolemaster Suite

      Manage user roles and permissions with precision for better security and workflow.
      Master Blocks

      Master Blocks

      Expand the Gutenberg editor with advanced custom blocks for more creative layouts.
      WP Spotlight

      WP Spotlight

      Instantly search and access admin features, posts, and settings from anywhere.
  • Themes
  • Help
    • Get Support
    • Documentation
    • Facebook Community
    • Changelogs
  • Blog
Pricing
🇺🇸EN
  • 🇺🇸EN
  • 🇸🇦AR
  • 🇧🇩BN
  • 🇩🇰DA
  • 🇩🇪DE
  • 🇪🇸ES
  • 🇫🇷FR
  • 🇮🇳HI
  • 🇰🇷KO
  • 🇵🇹PT
  • 🇷🇺RU
  • 🇨🇳ZH

Getting Started

  • Can’t see the Master Addon Element inside Elementor Page editor?
  • How To Apply For an Affiliate Account?
  • Active Pro version
  • Installing Plugin

Addons

  • Popup Trigger
  • Off-Canvas Content
  • Logo Slider
  • Progress Bars
  • Image Carousel
  • Featured Product
  • Comparison Table
  • Source Code
  • Advanced Image
  • Gradient Headline
  • Gallery Slider
  • Toggle Content
  • Infobox
  • Timeline
  • Dynamic Table
  • Mailchimp
  • Blockquote
  • Changelogs
  • Countdown Timer
  • Current Time
  • Search
  • Filterable Image Gallery
  • Team Slider
  • Counter Up
  • Restrict Content
  • Table of Contents
  • Image Hotspot
  • Image Comparison
  • News Ticker
  • Image Hover Effects
  • Tabs
  • Pricing Table
  • Navigation Menu
  • Domain Search
  • Flipbox
  • Tooltip
  • Creative Links
  • Business Hours
  • Contact Form 7
  • Creative Button
  • Animated Headlines
  • Advanced Accordion
  • Call to Action
  • Progress Bar
  • Blog
  • Team Member
  • Dual Heading

Extensions

  • Mega Menu
  • Which Element
  • Post Duplicator
  • Grid Line
  • Glassmorphism
  • Tooltip
  • Wrapper Link
  • Floating Effects
  • Dynamic Tags
  • Display Conditions
  • Entrance Animation
  • Custom Breakpoints
  • Animated Gradient Background
  • Reveal
  • Particles
  • Background Slider
  • Transforms
  • Rellax
  • Positioning
  • Custom CSS

Widget Builder

  • Conditions
  • Twig Syntax
  • Settings Panel Introduction
  • Divider
  • Text Shadow
  • Select2
  • Border
  • Heading
  • Tabs
  • Repeater
  • Visual Choice
  • Background
  • Dimensions
  • Box Shadow
  • Slider
  • Icons
  • Gallery
  • Media
  • Popover Toggle
  • URL Field
  • Date Time
  • Typography
  • Font
  • Color Field
  • Choose
  • Select
  • Switcher
  • Hidden
  • Code
  • WYSIWYG
  • Textarea Field
  • Number
  • Text Field

Theme Builder

  • Comment Form
  • 404
  • Search
  • Archive
  • Single
  • Footer
  • Header

Popup Builder

  • How to Open a Popup After Inactivity in Elementor
  • How to Show an Exit Intent Popup in Elementor
  • How to Open a Popup on Scroll to a Specific Element in Elementor
  • How to Open a Popup on Scroll in Elementor
  • How to Open a Popup on Click in Elementor
  • How to open a popup on page load?
  • Popup Settings & Options

Template Kit

  • How to Import Template Kits in Master Addons
  • How to Disable Elementor Default Fonts and Colors
  • Import Elementor Template Kits
View Categories
  • Home
  • Docs
  • Widget Builder
  • Date Time

Date Time

Roy Jemee
Updated on August 6, 2026

7 min read

The Date Time field gives a custom widget a proper calendar picker instead of a free-text date box. Editors click the field in Elementor, a Flatpickr calendar opens, and they pick a date (and optionally a time) without ever worrying about typing the format your widget expects. Inside the Master Addons Widget Builder, that consistency is the whole point: the value always arrives in a predictable format your template and script can rely on.

The Date Time field supports Conditions like every control, and its value prints through the Twig-syntax template engine, so you can compare it or wrap it in {% if %} blocks in your template. Both guides cover setup and limitations.

The field connects through a token like every simple value field. Print {{ event_date }} in the HTML panel to display the date, or hand it to the JS panel where a countdown, an opening-hours check, or a scheduling script can parse it.

What the Date Time field does #

  • Renders a click-to-open calendar picker (Flatpickr) in the widget’s Elementor panel.
  • Optionally includes a time selector alongside the calendar.
  • Stores the pick as a formatted string, normalized to Y-m-d H:i with time enabled or Y-m-d without it.
  • Prints that string anywhere in the HTML, CSS, or JS panel through {{ your_field_name }}.
  • Feeds JavaScript directly, the usual route for countdown and scheduling widgets.

If custom widgets are new territory, the Widget Builder overview is the better starting point; this page assumes you know your way around the editor.

Before you start #

  • WordPress with Elementor installed and active.
  • Master Addons for Elementor installed and active. New to the plugin? See the installation guide.
  • A custom widget open in the Widget Builder editor. Our example is an event countdown widget with a Date Time field named event_date that the widget’s script counts down to.

How to add a Date Time field #

Drag the Date Time field from the fields panel into a section under the Content tab. Its options open on the left once it lands.

Date Time field options explained #

  • Label: the text shown next to the picker in Elementor, for example “Event Date”.
  • Name: the unique identifier your templates refer to. Letters, numbers, and underscores only, for example event_date.
  • Default: the starting date string the widget ships with.
  • Enable Time: adds an hour and minute selector to the calendar. With it on, values come out as Y-m-d H:i (like 2026-12-31 18:00); with it off, as a plain Y-m-d date.
  • Minute Increment: the step the minute selector moves in, so editors can be limited to 5, 15, or 30 minute slots.
  • Description, Show Label, Separator: the standard display options, plus Conditions for showing the field only when another control has a certain value.

Under the hood the picker accepts a picker_options object with further Flatpickr settings, including noCalendar for a time-only picker, dateFormat, time_24hr, and minDate/maxDate bounds. The builder UI keeps the common ones, Enable Time and Minute Increment, front and center, and the runtime normalizes stored values to the two formats above either way.

Connect the Date Time field with its token #

The Date Time field is a token field. Displaying the date is one token in the HTML panel:

<p class="event-when">Doors open {{ event_date }}</p>

The more common wiring is the JS panel. Because the value is a stable Y-m-d H:i string, JavaScript can parse it and drive a countdown:

// JS panel
var deadline = new Date("{{ event_date }}".replace(" ", "T"));

var timer = setInterval(function () {
  var diff = deadline - new Date();
  if (diff <= 0) { clearInterval(timer); return; }
  var days  = Math.floor(diff / 86400000);
  var hours = Math.floor((diff % 86400000) / 3600000);
  document.querySelector(".event-countdown").textContent =
    days + "d " + hours + "h";
}, 1000);

One thing worth knowing before an international launch: the parsed date has no timezone attached, so new Date() interprets it in each visitor’s local time. A countdown to “18:00” ends at 18:00 in Berlin and again at 18:00 in New York. For a single global deadline, append an explicit offset like +00:00 to the string before parsing.

Watch out: the token prints a plain string, so quote it in JavaScript. var deadline = "{{ event_date }}"; works; without the quotes the rendered value is a syntax error. And since the format is fixed by the Enable Time setting, decide up front whether your script expects 2026-12-31 or 2026-12-31 18:00, then keep the toggle consistent with it.

Use the Date Time control in Elementor #

Add your custom widget to a page in Elementor, or reload the editor if the page was already open. The field shows as a text-style input under your label; clicking it opens the calendar popover.

Pick a day, and with Enable Time on, set the hour and minutes below the calendar. The input fills with the formatted value and the preview updates. Editors never type the date by hand, so the format your script parses is always the format that arrives.

Common use cases #

  • Countdown widgets for launches, sales, and events, with the JS panel doing the math.
  • Event cards that print a formatted date next to a venue and title.
  • Limited-offer banners that a script hides once the deadline passes.
  • Booking and schedule displays where opening or closing times feed the markup.
  • “Published on” style metadata for custom content widgets.

Tips for working with the Date Time field #

  • Match Enable Time to the job. A countdown needs the time component; a “published on” line does not. The stored format follows the toggle.
  • Quote the token in JS. The value is a string, and unquoted dates break the script the moment it renders.
  • Normalize before parsing. Replacing the space with T, as in the countdown example, keeps new Date() parsing consistent across browsers.
  • Set a Default in the future for countdown widgets, so a fresh drop counts down instead of showing zeros.
  • Use Minute Increment to reduce noise. Fifteen-minute steps are easier to pick and read than arbitrary minutes.
  • Handle the past. Decide in the script what happens when the deadline has passed: hide the widget, show a message, or stop at zero.

Frequently Asked Questions #

What is the Date Time field in the Master Addons Widget Builder?

The Date Time field adds a Flatpickr calendar picker to a custom Elementor widget. Editors pick a date, and optionally a time, and the field stores a formatted string (Y-m-d H:i or Y-m-d) that templates print with {{ field_name }} in the HTML, CSS, or JS panel.

What format does the value come out in?

With Enable Time on, Y-m-d H:i, for example 2026-12-31 18:00. With it off, Y-m-d. The runtime normalizes stored values to these two formats, so your script can parse them without guessing.

How do I build a countdown from this field?

Print the token into a JavaScript string in the JS panel, parse it with new Date(), and update the DOM on an interval. See the countdown example above; the token renders into the script before it runs, so no data attributes are required.

Can I make the picker time-only?

Yes. The underlying picker options include noCalendar, which drops the calendar and leaves the time selector, useful for opening-hours style widgets.

Can I restrict which dates editors can pick?

The picker options include minDate and maxDate bounds, so a widget can refuse past dates for a countdown or cap how far ahead a booking display reaches.

Why does my countdown script throw a syntax error?

Almost always missing quotes. The token must render inside a JS string: var deadline = "{{ event_date }}";. Rendered bare, the date’s spaces and hyphens are invalid JavaScript.

Wrapping up #

The Widget Builder Date Time field takes date entry out of editors’ hands and puts a predictable string into yours: one picker in the panel, one token in the template, and formats that scripts can parse without defensive code. Pair it with the Switcher field to toggle expired-state behavior, or the Number field for tunable refresh intervals. Explore the rest of the Master Addons widgets and extensions, and see the pricing page for what each plan includes.

What are your Feelings

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on August 6, 2026
URL FieldTypography
Table of Contents
  • What the Date Time field does
  • Before you start
  • How to add a Date Time field
  • Date Time field options explained
  • Connect the Date Time field with its token
  • Use the Date Time control in Elementor
  • Common use cases
  • Tips for working with the Date Time field
  • Frequently Asked Questions
    • What is the Date Time field in the Master Addons Widget Builder?
    • What format does the value come out in?
    • How do I build a countdown from this field?
    • Can I make the picker time-only?
    • Can I restrict which dates editors can pick?
    • Why does my countdown script throw a syntax error?
  • Wrapping up

Join 30,000+ Web Creators Who Trust Master Addons

Get all the premium widgets and templates you desire, built with clean code that keeps your site fast. Ditch the bloat, not the features.

Try Live Demo
Join The Community
Master Addons for Elementor

80+ Premium Widgets & Lifetime Updates – Build Beyond Limits. An Exclusive Creation by Pixar Labs

Facebook-f Twitter Youtube Wordpress
Features
  • Template kits
  • Template Library
  • Widget Builder
  • Theme Builder
  • Mega Menu Builder
Support
  • Support Forum
  • Contact US
  • Join Community
  • Blog
  • Video Reviews
Resources
  • My Account
  • Changlogs
  • Documentation
  • Video Tutorials
  • Toolz.dev
Navigate
  • Apply for Affiliate
  • Terms of Use
  • Refund Policy
  • Privacy Policy
  • About Us