View Single Post
Old 05-06-2002, 10:52 PM  
Mr.Fiction
Confirmed User
 
Join Date: Feb 2002
Location: Free Speech Land
Posts: 9,484
Can't you just use the Autogallery variables to do this?

Like #%DATE%# or #%LUPDT%#

I don't know if that would work, but if not, how about...

You are using an SHTML page, you should be able to do it using SSI. I wasn't able to get it to work perfectly when testing.

Read this page:
http://www.wdvl.com/Authoring/SSI/Intro/config.html

To me, it looks like you should be able to do this:

Code:
< !--#config timefmt="%m/%e"-->
< !--#echo var="DATE_LOCAL"-->
The problem with this is that it' makes the month have a zero in front of it. I suppose you should just do it where you update the month number each month and just echo the day each day. For example:

Code:
5/
< !--#config timefmt="%e"-->
< !--#echo var="DATE_LOCAL"-->
For some reason, though, when I test it, I get a space in front of the day. I'm not sure why.

Alterately, you could just do a simple server side include that would pull in a text file with the current date. For example, make a cron job that runs a script to update the date in a text file each night at midnight, then just put an include for that tiny text file each place where you want the date to appear.

I'm sure there might be a better way, but that's the way I'd probably do it.
Mr.Fiction is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote