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 Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Date format problems (Grant Hulbert 1997)
  2. Re: Date format problems (John Hill 1997)
  3. Date format problems (John S. Winningham 1997)
  4. Re: Date format problems (Olin 1997)
>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 Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/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)