Logo Text Blaze

  • Docs
  • Community
  • Documentation

    No search results

    Text Blaze

    Loading...

    Data Blaze

    Loading...

    Community Forums

    Loading...
Add to Chrome –  It's Free! Go to Dashboard ›
Commands

{formdate}

Summary: Creates a date input field.
Sample Usage
Due date: {formdate: MM DD, YYYY}
_

Quick Overview Video

Settings


Setting NameTypeDescription
PositionalformatThe format for the date.
startdateThe minimum selectable date.
enddateThe maximum selectable date.
colsnumberThe width of the form field in columns of characters.
General Form Settings
nametextName used for labels and data bindings.
default–The default value for the form field.
formatterfunctionFormats the value of the field before snippet insertion.
General Command Settings
trimyes/no/left/rightIf yes whitespace is removed before and after the command. If left, only whitespace to the left is removed. If right, only whitespace to the right is removed.

To learn more about form commands and their capabilities, see the forms guide.

Formatting Dates

The {formdate} command requires a format setting that tells Text Blaze how to format the date when inserting. This format uses the same notation as the {time} command.

Click here to learn about time/date formatting in Text Blaze.

The format setting must contain enough information to define a complete date. Generally, the date needs to contain at least a day, month and year component. For this reason MM DD YYYY would be a valid format but YYYY by itself would not as it does not define a complete date.

Valid and Invalid Formats
Valid date format: {formdate: MM DD, YYYY} Valid date format: {formdate: YYYY-MM-DD} Valid date format: {formdate: LL}

Invalid date format as it does not define a complete date: {formdate: YYYY} Invalid date format as it does not define a complete date: {formdate: MM YYYY}
_

When entering a date via the {formdate} in the form popup, the date selector will use the same format that you define in the {formdate}'s positional setting.

Also, the same format will be used when using the date in a formula.

Example Formats
Formdate 1: {formdate: MM DD, YYYY; name=date1} Formatted: {=date1} Formdate 2: {formdate: YYYY-MM-DD; name=date2} Formatted: {=date2} Formdate 3: {formdate: LL; name=date3} Formatted: {=date3}
_

Try it out

  • Change the format of the {formdate} commands above and notice how the format of the output will also change.

Restricting Selectable Dates

You can optionally restrict the range of dates that can be selected using the start and end settings.

The start and end settings are dates that may be entered in the same format as the formdate's format setting, or in a canonical YYYY-MM-DD format.

You can also embed {time} commands in order to create a dynamic range as seen in this example.

Restricting the Selectable Range
Select a date in 2012: {formdate: LL; start=2012-01-01; end=2012-12-31}

Select a date in the next 14 days: {formdate: LL; start={time: YYYY-MM-DD}; end={time: YYYY-MM-DD; shift=+14D}}
_
  • Guides
    • Quick Start
    • Sharing Snippet Folders
    • Dynamic Commands
    • Date and Time
    • Autopilot
    • Forms
    • Formulas
    • Rules & Validation
    • Tidying Whitespace
    • Lists
    • Teams and Organizations
  • Tutorial Videos
  • Academy
    • Intro to commands
  • Showcase
  • Frequently Asked Questions
  • Formula Reference
  • Dynamic Commands
    • Using Dynamic Commands
    • {=} (Formula Command)
    • {click}
    • {clipboard}
    • {cursor}
    • {error}
    • {formdate}
    • {formmenu}
    • {formparagraph}
    • {formtext}
    • {formtoggle}
    • {if}
    • {import}
    • {key}
    • {link}
    • {note}
    • {repeat}
    • {site}
    • {snippet}
    • {time}
    • {user}
    • {wait}
  • Connected Snippets
    • Connected Snippets Overview
    • {image}
    • {urlload}
    • {urlsend}
    • {dbselect}
    • {dbinsert}
    • {dbupdate}
    • {dbdelete}
  • Command Packs
    • Capitalize
    • Gmail
    • LinkedIn
    • Randomize

About

Plans and Pricing
Sharing Snippets
Text Blaze for Business
Forms
Autopilot
Dynamic Commands
Command Packs
Text Blaze for Windows

Support

Get Started with Text Blaze
Contact Us
Documentation
Community Forum
Blog

Solution for

Teams
Customer Support
Recruiters
Education
Healthcare
Sales
Property Managers

Other

Privacy Policy
Terms of Service
Open Source Licenses
Affiliate
© 2023 Blaze Today Inc