Re: [date] formatting bug inside [orderfile]?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 16841
interpreted = N
texte = >outside the orderfile, date is 03/31/1998 and formatted is 03/31/98>inside the orderfile, date is 03/31/1998 and formatted is>03/31/1998%m/%d/%y]>>A bug? A problem? Should I be setting this up differently? For the time>being, I'll be setting the formatted date/time *outside* the [orderfile]>and assigning it to a cart header for use inside -- but there must be a>better way.In the context of an [OrderFile], the tag [date] refers to the headervariable date in the order file, essentially no different than somethinglike [header5]. So the symptom you're seeing is analogous to the(incorrect) [header5 %m/%d/%y] which makes no sense to WebCatalog.Outside the context of an [OrderFile], [date] refers to today's date fromthe server's clock.So you'd have to use the [Format] context to force the date into adifferent format:[Format Days_To_Date %m/%d/%y][math]{[date]}[/math][/Format]The Math context converts the orderfile date to the number of days since00/00/0000, and then the Format context converts that number to a formatteddate of your choosing.Technical Support | ==== eCommerce and Beyond ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>outside the orderfile, date is 03/31/1998 and formatted is 03/31/98>inside the orderfile, date is 03/31/1998 and formatted is>03/31/1998%m/%d/%y]>>A bug? A problem? Should I be setting this up differently? For the time>being, I'll be setting the formatted date/time *outside* the
[orderfile]>and assigning it to a cart header for use inside -- but there must be a>better way.In the context of an
[orderfile], the tag
[date] refers to the headervariable date in the
order file, essentially no different than somethinglike [header5]. So the symptom you're seeing is analogous to the(incorrect) [header5 %m/%d/%y] which makes no sense to WebCatalog.Outside the context of an
[orderfile],
[date] refers to today's date fromthe server's clock.So you'd have to use the
[format] context to force the date into adifferent format:[Format Days_To_Date %m/%d/%y]
[math]{
[date]}[/math][/Format]The Math context converts the orderfile date to the number of days since00/00/0000, and then the Format context converts that number to a formatteddate of your choosing.Technical Support | ==== eCommerce and Beyond ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
PCS Technical Support
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:
Store Builder, technical infos (1998)
Silly Question (1997)
PCS Frames (1997)
search form problem.. (1997)
TPL Asks For Authentication (2004)
WCS Newbie question (1997)
attn: smitmicro - cart limitation (2002)
Search in 2 or more catalogs (1997)
bugs w/! &/or bad scripting??? (1997)
Help--WebCat setup (2000)
Which beta for w* 4.1 and a problem w/b12 (1999)
WebCat editing, SiteGuard & SiteEdit (1997)
Multiple fields on 1 input (1997)
Questions To Answer (1997)
[WebDNA] Error 500 with SUMM=T (2017)
Sample Tearoom Search Error (1997)
xmlparse and utf-8 encoding (2006)
php + WebCatalog in same files (2001)
Runtime (1998)
Caching pages...again (2001)