Formatted Date

Developer

Laisvunas

3rd Party (Free)


EE Version Support

  • ExpressionEngine 1.x
  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Extension, Module

Tags

Displays custom date according global or ad hoc format. .

INSTALLATION FOR EE 2.0+

1) upload the directory “fdate” to /system/expressionengine/third_party on the server.

2) go CP Home > Add-ons > Modules, find “Formatted Date” in modules list and click “Install”.
Then click the link “Formatted Date” and set settings.

INSTALLATION FOR EE 1.x+

1) upload the file ext.fdate_ext.php to /system/extensions directory on the server.

2) upload the files mod.fdate.php and mcp.fdate.php to /system/modules/fdate directory on the server.

3) upload the file lang.fdate.php to /system/language/english directory on the server.

4) go CP Home >  Admin >  Utilities >  Extensions Manager, find “Formatted Date” in extensions list and click “Enable”.

5) go CP Home >  Modules, find “Formatted Date” in modules list and click “Install”. Then click the link “Formatted Date” and set settings.

SETTINGS

This add-on has following settings.

1) Default value of “date_format” parameter. ExpressionEngine’s date formats are described here: http://expressionengine.com/user_guide/templates/date_variable_formatting.html
Default value of this setting is “%D, %F %d, %Y”.

2) Default value of “localize” parameter. Set to “yes” if you need the dates to be localized by default, “no” if otherwise. Default value of this setting is “no”.

PARAMETERS OF exp:fdate tag

1) date - Required. Allows you to specify a date. Use format YYYY-MM-DD

2) time - Optional. Allows you to specify time. Use format HH-MM-SS (minutes and seconds are optional; hours should be specified in 24 hours format).

3) format - Optional. If specified, will override the value of relevant setting. ExpressionEngine’s date formats are described here: http://expressionengine.com/user_guide/templates/date_variable_formatting.html

4) localize - Optional. If specified, will override the value of relevant setting. Set to “yes” if you need the dates to be localized, “no” if otherwise.

USAGE EXAMPLES

This code will output formatted date using default values of “format” and “localize” parameters:

{exp:fdate date="2011-08-07"}

This code also will output formatted date using default values of “format” and “localize” parameters. Notice that time is also specified:

{exp:fdate date="2011-08-07" time="18:11:58"}

This code will output formatted date using default value of “format” parameter; “localize” parameter value will override default value:

{exp:fdate date="2011-08-07" time="18:11:58" localize="no"}

In this code “format” parameter value overrides default date format and “localize” parameter value overrides default localize value:

{exp:fdate date="2011-08-07" time="18:11:58" localize="no" format="%D, %F %d, %Y %H hours %i mins %s secs"} 

Hooks Used

If the add-on is an extension, and ties into ExpressionEngine's core files, it will use ExpressionEngine hooks. We are listing any hooks the add-on uses for developers to have an easier time locating other add-ons that they can reference for their own work.

  1. show_full_control_panel_end

This entry was created June 12, 2009, 2:02 pm.
This entry was last updated October 19, 2011, 10:44 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!