Re: math on date?

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12659
interpreted = N
texte = >You mean you want the date to 'roll over' when the number of hours exceeds >24 greater than the date in question? I believe we can't mix dates and >times into the same math context by simply adding {[date]}+{[time]}, so >for now you will probably have to get creative with some [time %H] and >math equations on your own.Here's one:The following expression works fine:Date is [MATH DATE]{[DATE]}+1[/MATH]However, am I stuck with the default output of 07/22/97?When I try this:[format date %m %j, %Y][MATH DATE]{[DATE]}+1[/MATH][/format]I get this:Date is 01 001, 1970Anyway to control the date output?Thanks,Olin..................................................................... W O R L D P O I N T I N T E R A C T I V E OLIN KEALOHA LAGON director, website creation Honolulu San Francisco 2800 woodlawn drive 222 sutter street olin@worldpoint.com suite 170 sixth floor www.worldpoint.com honolulu, hi 96822 san francisco, ca 94108 voice.808.539.3978 fax.808.539.3943 cell.808.291.1610 ..................................................................... Associated Messages, from the most recent to the oldest:

    
  1. Re: math on date? (Grant Hulbert 1997)
  2. Re: math on date? (Kenneth Grome 1997)
  3. Re: math on date? (Olin 1997)
  4. Re: math on date? (Grant Hulbert 1997)
  5. Re: math on date? (Olin 1997)
  6. Re: math on date? (Grant Hulbert 1997)
  7. math on date? (Olin 1997)
>You mean you want the date to 'roll over' when the number of hours exceeds >24 greater than the date in question? I believe we can't mix dates and >times into the same math context by simply adding {[date]}+{[time]}, so >for now you will probably have to get creative with some [time %H] and >math equations on your own.Here's one:The following expression works fine:Date is [MATH DATE]{[date]}+1[/MATH]However, am I stuck with the default output of 07/22/97?When I try this:[format date %m %j, %Y][MATH DATE]{[date]}+1[/MATH][/format]I get this:Date is 01 001, 1970Anyway to control the date output?Thanks,Olin..................................................................... W O R L D P O I N T I N T E R A C T I V E OLIN KEALOHA LAGON director, website creation Honolulu San Francisco 2800 woodlawn drive 222 sutter street olin@worldpoint.com suite 170 sixth floor www.worldpoint.com honolulu, hi 96822 san francisco, ca 94108 voice.808.539.3978 fax.808.539.3943 cell.808.291.1610 ..................................................................... Olin

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:

Encrypting the seed (2001) [WebDNA] Recurring Orders (2012) Setting up the server (1997) Bug or syntax error on my part? (1997) Execute Applescript (1997) Payments -> Bank Accounts (2005) What changes does $purchase make? (1998) [searchString] (1997) WebCat2: Items xx to xx shown, etc. (1997) Signal Raised Error (1997) Dark Horse Comics success story (1997) Shipping calculations (1997) WCS Newbie question (1997) [WebDNA] WebDNA Hosting (2008) pc (1997) [WebDNA] [OT] Spam reduction? (2009) Why isn't this working (1999) Calendar (1997) IIS4 & Password Authentication, request example (1998) Cart Question (1998)