Date & Time Field

Overview

The Date field allows you to easily store a date and time. 

Tip: See also, Basic Settings

Default Display

Finish.png

Field Creation Form Settings

Turning on the Include Time check-box will simply allow the user to also input the exact time to the seconds.

Creation.png

Content Entry Form

When entering content into the field, the user can only input the Date and Time in MM/DD/YYYY format and HH:MM:SS AM/PM Format.

Note: This information gets saved in metafields as a Unix Timestamp. For more information, visit the Tips for Importing Each Field Type article and read the section on the Date Field.

Tiiime.png

Default Liquid Code

The Edit Code section allows a user to edit how a field prints or functions. The default code for this type of field is found below. 

Content_Entry.png

For more information about code customization and the code editor itself, visit our Guide to the Snippet Editor.

Customization of the Output Format

You can adjust the output format when editing the template for this field. See Shopify date documentation for options.

Additional Resources & Information

Shopify Documentation: Liquid Coding and Theming

Custom Fields: Types of Fields & How to Manage Them

Custom Fields: Theming Examples & Tutorials