Difference between revisions of "Test:Dateformat"

From Wikispooks
Jump to navigation Jump to search
Line 33: Line 33:
 
==#time:==
 
==#time:==
 
* 6 May, 1953 - {{#time: Y|6 May, 1953 }}
 
* 6 May, 1953 - {{#time: Y|6 May, 1953 }}
 +
* 6 May 1953 - {{#time: Y|6 May 1953 }}
 +
 +
Not working on randomly format data.
 +
 
* 1953-05-06 - {{#time: Y|1953-05-06}}
 
* 1953-05-06 - {{#time: Y|1953-05-06}}
  
Works from ISO format... Hmm...
+
But ''works'' from ISO format... Hmmmm, not much use really...

Revision as of 09:53, 13 July 2016

#dateformat:

May 6, 1953

  • ymd - 1953 May 6
  • ym - May 6, 1953
  • y - May 6, 1953

May 6 1953

  • ymd - 1953 May 6
  • ym - May 6, 1953
  • y - May 6, 1953

6 May, 1953

  • ymd - 1953 May 6
  • ym - 6 May 1953
  • y - 6 May 1953

Conclusion

Dead loss.

#formatdate:

6 May, 1953

  • ymd - 1953 May 6
  • ym - 6 May 1953
  • y - 6 May 1953

ISO 8601

  • ISO 8601 -2009-12-25

Conclusion

Not working as advertised at https://www.mediawiki.org/wiki/Help:Magic_words :-( So find another way to process dates...

#time:

  • 6 May, 1953 - 2024
  • 6 May 1953 - 1953

Not working on randomly format data.

  • 1953-05-06 - 1953

But works from ISO format... Hmmmm, not much use really...