• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Check date

  • Template
  • Talk
  • Language
  • Watch
  • View source
(Redirected from Template:Checkdate)
Template documentation[view] [edit] [history] [purge]

This template is used to check whether the given parameter is a month. It is useful for templates such as {{Multiple issues}} that sort articles into cleanup categories by month.

If the parameter is a month/date/time formatted in the way recognized by PHP's strtotime(), this template returns the month in the format Month Year, where Month is written in full and Year is written in 4 digits.

If the parameter is not a month/date/time, the empty string is returned.

Input Output
{{Check date|April 2003}} April 2003
{{Check date|2003 April}} April 2003
{{Check date|Apr 2003}} April 2003
{{Check date|April 3 2003}} April 2003
{{Check date|April 03}} April 2025 (thinks it is April 3 of the current year)
{{Check date|Garbage^&*text}}
The above documentation is transcluded from Template:Check date/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Check_date&oldid=579828609"
Last edited on 2 November 2013, at 04:05

Languages

    • العربية
    • অসমীয়া
    • বাংলা
    • 한국어
    • Հայերեն
    • Bahasa Indonesia
    • मराठी
    • Bahasa Melayu
    • 日本語
    • ଓଡ଼ିଆ
    • ភាសាខ្មែរ
    • Română
    • संस्कृतम्
    • සිංහල
    • Simple English
    • Slovenščina
    • తెలుగు
    • 粵語
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 2 November 2013, at 04:05 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop