Re: date
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 25254
interpreted = N
texte = In an orderfile context, there is a predefined fields called [date] which oddlyenough contains the date for the orderfile/shopping cart. You cannot reformatthis because the WebCat parser is too greedy and assumes that [date should matchthe field [date] without checking to see that you are actually referring to the[date %Y%m%d] context. The appropriate way to handle this is the set atemporary variable to be equal to your formatted date on the previous page, thenpass it along.That being said, it has been my experience that most of the time, trying toreformat the date is part of an attempt by the programmer to create a uniquevalue to store during order entry. This is a duplication of effort, since the[cart] is already a guaranteed unique value and can be used as a SKU, customernumber, or order number without fear of duplication (barring browsers whichbookmark pages they shouldn't).HTHJohn Peacock____________________Reply Separator____________________Subject: date Author:
(WebCatalog Talk)Date: 12/7/99 6:10 PMHi,I'm trying to display a date in a different format, I'm using [date %Y%m%d] because I want 19990712 as result, but the template displays this: 12/07/1999%Y%m%d] instead.Something wrong?ThanksRodolfo de la Garza-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
In an orderfile context, there is a predefined fields called [date] which oddlyenough contains the date for the orderfile/shopping cart. You cannot reformatthis because the WebCat parser is too greedy and assumes that [date should matchthe field [date] without checking to see that you are actually referring to the[date %Y%m%d] context. The appropriate way to handle this is the set atemporary variable to be equal to your formatted date on the previous page, thenpass it along.That being said, it has been my experience that most of the time, trying toreformat the date is part of an attempt by the programmer to create a uniquevalue to store during order entry. This is a duplication of effort, since the[cart] is already a guaranteed unique value and can be used as a SKU, customernumber, or order number without fear of duplication (barring browsers whichbookmark pages they shouldn't).HTHJohn Peacock____________________Reply Separator____________________Subject: date Author: (WebCatalog Talk)Date: 12/7/99 6:10 PMHi,I'm trying to display a date in a different format, I'm using [date %Y%m%d] because I want 19990712 as result, but the template displays this: 12/07/1999%Y%m%d] instead.Something wrong?ThanksRodolfo de la Garza-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
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:
Re1000001: Setting up shop (1997)
Formulas.db / Quantity Discount problem (1998)
Displaying backgrounds (1999)
Plugin or CGI or both (1997)
javascript problem copying values (2000)
printing twice? and fix (1997)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
using showpage and showcart commands (1996)
WebCat2b15MacPlugin - showing [math] (1997)
E-Mail Preferences in Admin Folder (1997)
Emailer setup (1997)
normal users.db calls ... (1998)
Store Builder, technical infos (1998)
Summing fields (1997)
Re:Emailer tracking (1997)
URL for Discussion Archive (1997)
Grep help, please ... (2003)
Line items in table cells (1997)
[WebDNA] small bug when searching tables in functions (2011)
Am I going senile? (Price recalc based on quantity) (1997)