Re: Date format problems
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13423
interpreted = N
texte = >I am using the [date] tag to save documents into certain folders based>on date, but the tag I am using, which is [date %A], which is supposed>to be giving me Friday, is giving me 09/12/97%A]. I have this exact>tag on another page, and it works just fine. What gives?If you are using [date] inside of an [OrderFile] context (or on a page that displays as a result of $ShowCart, $Purchase, etc) then it means something completely different -- it is the date field from the order, and does not have the formatting abilities that the global [date] tag has.If you want to pass in the date from the previous page (that is not inside an [OrderFile] context), just add something like &today=[date %A] to the URL, then display [today] on the resultiing page.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>I am using the
[date] tag to save documents into certain folders based>on date, but the tag I am using, which is [date %A], which is supposed>to be giving me Friday, is giving me 09/12/97%A]. I have this exact>tag on another page, and it works just fine. What gives?If you are using
[date] inside of an
[orderfile] context (or on a page that displays as a result of $ShowCart, $Purchase, etc) then it means something completely different -- it is the date field from the order, and does not have the formatting abilities that the global
[date] tag has.If you want to pass in the date from the previous page (that is not inside an
[orderfile] context), just add something like &today=[date %A] to the URL, then display [today] on the resultiing page.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Summing fields (1997)
Concatenating Form Variables (1998)
WebSite and *NO* Authentication Dialog Box!!? (1998)
HELP WITH DATES (1997)
Newbie from and old bee (1997)
Summing fields (1997)
Frames and WebCat (1997)
WebCatalog/Mac 2.1b2 - PIXO (1997)
WebCat2b15MacPlugin - showing [math] (1997)
Newbie: ASIP vs WebTen? (2000)
Another issue with [Date format] (1998)
Here's how to kill a Butler Database. (1997)
Access Denied! But why? (1997)
Country & Ship-to address & other fields ? (1997)
Re:Transfer of data from Invoice to thank you templates (1998)
WebCatalog Features (1997)
WebCat2 several catalogs? (1997)
passwords (2000)
date format (another question) (2000)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)