Dynamic Dates

Dynamic Dates use placeholders to define the date components in a URL.
When the website is scheduled to be opened the placeholders are updated with the current date information:

The function works as follows:

  • http:// testurl.com/{YYYY-MM-DD}
  • http:// testurl.com/{YYYY-WW-D}

where:

  • { } encloses the date information
  • YYYY is a placeholder for a four digit year
  • YY is a placeholder for a two digit year
  • MM is a placeholder for a two digit month 01-12
  • M is a placeholder for a single digit month 1-12
  • DD is a placeholder for a two digit day 01-31 (or day of the week 1-7)
  • D is a placeholder for a single digit day 1-31 (or day of the week 1-7)
  • WW is a placeholder for a two digit week number 01-52/53
  • W is a placeholder for a one digit week number 1-52/53
  • [ ] encloses static preserved characters
  • +1 .. 9 is a look ahead function for future dates
  • you can choose the date separator to match the URL, for example “-” or “.” or nothing

Examples: 3rd September 2011

http:// www. dilbert.com/strips/comic/{YYYY-MM-DD} = http:// www. dilbert.com/strips/comic/2011-09-03
http:// www. dilbert.com/strips/comic/{YY-MM-DD} = http:// www. dilbert.com/strips/comic/11-09-03
http:// www. dilbert.com/strips/comic/{YYYY-M-D} = http:// www. dilbert.com/strips/comic/2011-9-3
http:// www. dilbert.com/strips/comic/{YYYYMMDD} = http:// www. dilbert.com/strips/comic/20110903
http:// www. dilbert.com/strips/comic/{YYYY.MM.DD} = http:// www. dilbert.com/strips/comic/2011.09.03

.

The placeholder order can be changed to suit the URL and the position of the date within the URL.

Examples:

  • http:// testurl.com/{YYYY-DD-MM}
  • http:// testurl.com/{DD-MM-YYYY}
  • http:// testurl.com/{YYYY-MM-DD}/somesection/index.html

.

You can also use the Week Number date format (ISO 8601).
(Monday = 1, …… Sunday = 7)

  • http:// testurl.com/{YYYY-WW-D}

Examples: 16th May 2013

http:// testurl.com/{YYYY-WW-D} = http:// testurl.com/2013-20-4
http:// testurl.com/{YYYY-[w]WW-D} = http:// testurl.com/2013-w20-4
http:// testurl.com/{YYYY-[week]WW-D} = http:// testurl.com/2013-week20-4
Note: the square brackets [ ] preserve the characters between them
The preserved characters are static or constant (not dynamic)

.

There is also a look ahead function for future dates.

Examples: 16th May 2013

http:// testurl.com/{YYYY-MM-DD+2} = http:// testurl.com/2013-05-18
http:// testurl.com/{YYYY-WW-D+1} = http:// testurl.com/2013-20-5

Note: +9 is the maximum

.

Other Examples:  16th May 2013

http:// testurl.com/{YYYY-[may]-DD} = http:// testurl.com/2013-may-16
The preserved characters in [ ] are static or constant (not dynamic), so at the end of the month you would need to manually change from [may] to [june] etc

.

The placeholders are localized for languages other than English

de-DE (Deutsch):  JJJJ-MM-TT    JJJJ-WW-T
pt-BR (Português-Brasil):  AAAA-MM-DD    AAAA-SS-D
fr (Français):  AAAA-MM-QQ    AAAA-WW-Q
zh-TW (中文) :  年年年年-月月-日日    年年年年-周周-日
zh-CN (中文) :  年年年年-月月-日日    年年年年-周周-日
ru-RU (Русский) :  гггг-мм-дд    гггг-нн-д
tr-TR (Türkçe) :  YYYY-AA-GG    YYYY-HH-G
ja (日本) :  年年年年-月月-日日    年年年年-週週-日
es-ES (Español) :  AAAA-MM-DD    AAAA-SS-D
el-GR (Ελληνικά) :  έέέέ-μμ-ηη    έέέέ-εε-η
it (Italiano) :  AAAA-MM-GG    AAAA-SS-G
sv-SE (Svenska) :  ÅÅÅÅ-MM-DD    ÅÅÅÅ-VV-D