Date Variables

In some strings you can use dynamic placeholders to inject the current date or time into the string. This can be especially useful for easily creating up-to-date copyright footers. Any of the standard PHP placeholders can be used as long as they're preceded by %.

For example:

%Y Acme & Co

Will become:

2017 Acme & Co

If you wish to actually use the placeholder syntax in the string (have it appear as is without being changing to a date) you can use double escaping. Note that the extra escaping character will be removed so always do one more than you'd like.

For example:

%%m Acme & Co %%%d

Will become:

%m Acme & Co %%d

Please note that PHP gets the date from your web server so make sure to confirm that it is correct.

Still need help? Contact Us Contact Us