DropDate

Better date selection.

Download Now
Version
2.0.2
Works on
EE2

Template Tags

DropDate provides a single template tag for outputting the field data. The tag accepts a single parameter – format – which is used to control the format of the returned string.

The format parameter accepts any standard PHP date formatting string. If the format parameter is not specified, a UNIX timestamp is returned.

Usage examples

In the following examples, the DropDate field has a short name of dropdate, and the saved date is 19th February, 1973.

{dropdate}                    // 98960400
{dropdate format='jS F, Y'}       // 19th February, 1973
{dropdate format='Y-m-d'}     // 1973-02-19

A note regarding localisation

Using a % sign in the format parameter will prompt ExpressionEngine to use its “localization” methods to automatically translate the month. For example, assuming the current month to be January, the following would output “Janvier” on a French language site:

{dropdate format='%F'}

Documentation

Sign up for exclusive offers, tips, and previews

Subscriber-only special offers on our commercial add-ons, and sneak-peaks of upcoming releases.

No spam, not ever.

Copyright © Experience Internet. Read our Privacy Policy.