Date in Meta tag

Post Reply
jfinerfrock
Posts: 5
Joined: Mon Jan 15, 2001 5:57 pm

Date in Meta tag

Post by jfinerfrock »

I would like to place the current date "now" in a meta tag.

For example:

<META name="author" content="By Me on $date">

I would like $date to be equal to <strfmt "%m/%d/%y" "now">

Can I do this using Vortex?

Or should I just attempt this using javascript?
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Date in Meta tag

Post by John »

The following should work:

<strfmt "%m/%d/%y" "now">
<META name="author" content="By Me on $ret">

If you wanted you could assign $ret to $date and then use $date with <$date=$ret> after the <strfmt>. It might make sense to use a 4 digit year, or a format such as %Y-%m-%d for clarity.
John Turnbull
Thunderstone Software
Post Reply