Re: month or year from date field in lineitems?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 18591
interpreted = N
texte = >I'm attempting to get only the Month and Year from an order file and have so>far been unsuccessful. My results have been like 06/27/1998%B].Yes, that's a classic problem because inside the [LineItems] loop when youask for [date] you are actually just getting the date field from the orderfile itself, and *not* the today's date tag that you would get if youwere outside an OrderFile context.So try this: [format days_to_date %Y][math]{[date]}[/math][/format]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:
>I'm attempting to get only the Month and Year from an
order file and have so>far been unsuccessful. My results have been like 06/27/1998%B].Yes, that's a classic problem because inside the
[lineitems] loop when youask for
[date] you are actually just getting the date field from the orderfile itself, and *not* the today's date tag that you would get if youwere outside an OrderFile context.So try this: [format days_to_date %Y]
[math]{
[date]}[/math][/format]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:
Problems with ^ could be solved with [REPLACE CHARACTERS] (1997)
Re2: Calculating multiple shipping... (1997)
Webcat 2.0.1 date math bug -> Crash! (1997)
WCf2 and nested tags (1997)
[WebDNA] sem_open solved (2012)
[Webcat 2]Next (1997)
Adding more than one item and QTY to cart (2000)
$Replace with [founditems] (1997)
turning every 5th line red (1999)
WC TableGrinder (1997)
GD Scumbucket Spammer (2004)
The last version of webcat (1999)
OT: need help with web address (2003)
PCS Emailer's role ? (1997)
OT: javascript print() (2003)
when is date system date or order date? (1997)
URGENT: WebDNA Server Not Running (2003)
Replace context problem ... (1997)
RE: webcat error log (1998)
Snake Bites (1997)