New Topic Reply Subscription Options |
Insert today's date
Forums: Questions and Answers About Building Your Site | |||
|
|||
Participant: Log in to see names |
Wednesday, September 9, 2015 at 5:54 PM
Is there a function similar to $first_name$ which can be used to insert today's date in a web page? Does it only work in emails to the class or any page that I might have created from scratch?
|
||
|
|||
Participant: Log in to see names |
Wednesday, September 9, 2015 at 10:42 PM - Response #1
Do you mean a real-time date (aka dynamic) or a fixed date that stays the same? Real-time date is easy with a small javascript. IOW, when the page comes up it has Today's date. Would only work for online pages though, not emails. But emails have the date/time sent.
|
||
|
|||
Participant: Log in to see names |
Thursday, September 10, 2015 at 1:04 AM - Response #2
Yes, a realtime date inserted into a statement on a page (not an email)
|
||
|
|||
Participant: Log in to see names |
Thursday, September 10, 2015 at 1:26 PM - Response #3
Insert this code in editor SOURCE mode. This is the date in numeric format. It's in an optional table so you can center and format the background color. The 'best' way to control the display is with some CSS that defines the font, background and color without using a table. But a table is easier using the CC editor. The minimum required is the 'div=' statement which is where the date will be placed. (editor view is different from actual - do a preview so see how it appears on your page) |