ClassCreator.com | Blockbuster sites, amazing reunions

Share Tips

New Topic Reply Subscription Options  

Insert today's date

Forums: Questions and Answers About Building Your Site
Created on: 09/09/15 05:54 PM Views: 1131 Replies: 3
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?
Thanks,
Mike

Reply
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.

Reply
Thursday, September 10, 2015 at 1:04 AM - Response #2

Yes, a realtime date inserted into a statement on a page (not an email)

Reply
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)

Reply
New Topic Reply  
Subscription Options: Have all new forum posts sent directly to your email.
Subscription options are available after you log in.