 |
HTML Help Please Search for the answer to your question before asking it! Thanks.
|
| View previous topic :: View next topic |
| Author |
Message |
Daniël
Joined: 31 Mar 2005
Posts: 9
|
| Posted: Thu Feb 09, 2006 7:27 am SSI date configuration |
|
|
Hi,
I want to create a daily varying URL to http://mgl.digi-dition.nl/daily/YEAR/MONTH/DAY/MGL/MA/11/pagina.php (example)
However, I need the MONTH and DAY values to be only one digit in length when they represent a value below ten. So instead of 04 it has to be 4
However, if I use SSI, I will get the 04/04 for April 4th, when I use the following syntax;
Code: <!-- #CONFIG TIMEFMT="%Y/%m/%d" -->
http://mgl.digi-dition.nl/daily/<!--#ECHO VAR = "DATE_LOCAL" -->/MGL/MA/11/pagina.php
Anyone any suggestion?
Daniel |
|
|
degsy
Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK
|
| Posted: Thu Feb 09, 2006 9:21 am |
|
|
%m 12 month number [1,12]; single digits are preceded by 0
Doesn't look like you can do it.
See if you have different scripting options such as PHP or ASP |
|
|
Daniël
Joined: 31 Mar 2005
Posts: 9
|
| Posted: Thu Feb 09, 2006 11:13 am |
|
|
OK thanks, I've indeed sorted it out with ASP, was exactly two minutes of work :roll: I only thought SSI would be more elegant.
Code: <a href="http://mgl.digi-dition.nl/daily/<% = Year(now) & "/" & Month(now) & "/" & Day(now) %>/MGL/MA/11/pagina.php">link</a>
<p>
<img src=http://mgl.digi-dition.nl/daily/<% = Year(now) & "/" & Month(now) & "/" & Day(now) %>/MGL/MA/11/DDL_1DA_20060209_96.jpg>
|
|
|
| |
|
|
|
Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group
|