Re: strange [date] behavior

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 40254
interpreted = N
texte = Most likely on the page with additional code, the date functions are inside of an [orderfile] context (or a database search for a database with a field named date)...Order files define a field called date and that overrides the WebDNA tag called date, and the field does not accept the formatting parameters.If you are trying to see today's date, you need to set a variable to the date prior to entering the [orderfile] context, then use that variable to display today's date:[text]today=[date][/text] [orderfile...] ... [today] ... [/orderfile]- brianAt 4:59 PM -0800 11/21/2001, Jeff Grady wrote: >Anyone have any idea why when I write a .tpl file that >only contains the following code: > > > >test > >Month Test: [date format=%m]
>year Test: [date format=%y]
> > > >The resulting page that is served displays: >Month Test: 11 >year Test: 01 > >BUT when I use the same code > >Month Test: [date format=%m]
>year Test: [date format=%y] > >on a page with a lot more webDNA in it, I get this: >Month Test: 11/21/2001format=%m] >year Test: 11/21/2001format=%y] >?? > >Maybe I am overlooking something very simple here. > >Any ideas are greatly appreciated. > >Thanks! >Jeff > >__________________________________________________ >Do You Yahoo!? >Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. >http://geocities.yahoo.com/ps/info1 > >------------------------------------------------------------- >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 > >Web Archive of this list is at: http://search.smithmicro.com/-- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =>------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: strange [date] behavior (John Peacock 2001)
  2. Re: strange [date] behavior (Nitai @ ComputerOil 2001)
  3. Re: strange [date] behavior (Glenn Busbin 2001)
  4. Re: strange [date] behavior (Jeff Grady 2001)
  5. Re: strange [date] behavior (Stuart Tremain 2001)
  6. Re: strange [date] behavior (Ken MacMurchy 2001)
  7. Re: strange [date] behavior (Glenn Busbin 2001)
  8. Re: strange [date] behavior (Jeff Grady 2001)
  9. Re: strange [date] behavior (Jeff Grady 2001)
  10. Re: strange [date] behavior (Brian Fries 2001)
  11. Re: strange [date] behavior (Brian Boegershausen 2001)
  12. strange [date] behavior (Jeff Grady 2001)
Most likely on the page with additional code, the date functions are inside of an [orderfile] context (or a database search for a database with a field named date)...order files define a field called date and that overrides the WebDNA tag called date, and the field does not accept the formatting parameters.If you are trying to see today's date, you need to set a variable to the date prior to entering the [orderfile] context, then use that variable to display today's date:[text]today=[date][/text] [orderfile...] ... [today] ... [/orderfile]- brianAt 4:59 PM -0800 11/21/2001, Jeff Grady wrote: >Anyone have any idea why when I write a .tpl file that >only contains the following code: > > > >test > >Month Test: [date format=%m]
>year Test: [date format=%y]
> > > >The resulting page that is served displays: >Month Test: 11 >year Test: 01 > >BUT when I use the same code > >Month Test: [date format=%m]
>year Test: [date format=%y] > >on a page with a lot more webDNA in it, I get this: >Month Test: 11/21/2001format=%m] >year Test: 11/21/2001format=%y] >?? > >Maybe I am overlooking something very simple here. > >Any ideas are greatly appreciated. > >Thanks! >Jeff > >__________________________________________________ >Do You Yahoo!? >Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. >http://geocities.yahoo.com/ps/info1 > >------------------------------------------------------------- >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 > >Web Archive of this list is at: http://search.smithmicro.com/-- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =>------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Brian Fries

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:

DNS Name lookup (1998) WebCat2b13MacPlugin - nested [xxx] contexts (1997) Help with Repost Data msg from form (1997) Problem with [Search] inside of [Loop]? (1997) Arbitrary limits on length of data in cart header fields? (2000) AutoCommit Preference? (1998) WC2.0 Memory Requirements (1997) minimalist shopping cart. (1997) Cookie Newbie (2002) Re1000002: Setting up shop (1997) send mail problem? (1997) Running 2 two WebCatalog.acgi's (1996) RE: Price recalc based on quantity (1997) charge.com (2005) Secure server question (1997) Dynamic drop downs (2005) emailer (1997) WebCat2 several catalogs? (1997) Dummy Credit Card Number for debug? (1997) WebMerchant? (1998)