Page 1 of 1

Date in Meta tag

Posted: Tue Jan 30, 2001 1:47 pm
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?

Date in Meta tag

Posted: Tue Jan 30, 2001 2:54 pm
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.