FANDOM


The purpose of the {{Date}} template is to return a formatted date entry string. It includes four combinations of year, month, and day. The order of parameters given to the template should be year, then month, then day.

Syntax

{{Date|year|month|day}}

Note: the month parameter should be a number from 1–12.

Examples

  • {{Date|2016|07|18}} → July 18, 2016
  • {{Date|2016}} → 2016
  • {{Date|2016|07}} → July 2016
  • {{Date||07|18}} → July 18
  • {{Date||07|}} → July Missing parameter 3=day!
  • {{Date|2016||30}} → Missing parameter 2=month!
Community content is available under CC-BY-SA unless otherwise noted.