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:
show all problem (1997)
How To question on setting up downloads (1997)
File Uploads... (1997)
Searchable archives gone again??? (2000)
Add a field to the error log? (1997)
when is date system date or order date? (1997)
when is date system date or order date? (1997)
Running a store on BOTH http and https (1998)
blank page from template (1997)
carriage returns in data (1997)
Newbie Tax Question (1997)
HTML encoding in URLs (1997)
[cart] tag (2000)
vs (1997)
free zip codes database (1999)
Version 4? (2000)
WebMerchant/PayFlowPro (2003)
Hard Questions ? (1997)
find with exceptions (1997)
Converting order file to database (1998)