How to add automatically updating date/time to text?
The website builder's text editor can display automatically updating date and time using datetime format string.
Here is how to add automatically updating date/time to your website:
- Select or add text element;
- Press "Edit Text" button;
- Add following value:
{{date:placeholder}}
(be sure to replace placeholder with desired PHP format character); - Here are a few examples of datetime format string:
- If you wish website visitors to see message "Today's date: (current date here)", then your datetime format string would look like this:
{{date:Y m d}}
- If you wish to display current time, you should enter into text editor:
{{date:H:i}}
- Press "Done" to save and apply changes.
A full list of paramaters supported by datetime format string can be found in official PHP article.