Re: Showif date > other date
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56757
interpreted = N
texte = Ken,We also store all dates as numbers, but if you're using a date comparisonwith a specific date, then you still have to code it in a date format - thedate preference format (unless you happen to know the number since 0).Regards,Tim> From: Kenneth Grome
> Reply-To: (WebDNA Talk)> Date: Fri, 12 Mar 2004 08:56:34 +0800> To: (WebDNA Talk)> Subject: Re: Showif date > other date> > That's two different preferences you have to set properly if you> change the default date format, right? Maybe this has been the cause> of some people's problems when not using the default date format,> they perhaps changed only one of the two date format preferences.> > I have never stored dates in formats other than "days since 0000" and> American format (which is webdna's default) but over the years there> have been numerous problems posted when people try doing things with> dates in different formats, so I thought this was still not possible.> > Thanks for confirming this, but I will personally continue to store> dates in the default format (or as days since 0000) just to prevent> any potential new problems in the future ... :)> > > >> Ken>> >> If the prefs are set to read and display European dates the code will work.>> >> I use this code with European Dates set in WebDNA prefs>> >> [If >> ("[Math]{[Date]}[/Math]">"[Math]{01/02/2004}[/Math]")|("[Math]{[Date]}[/Math]>> "="[Math]{01/02/2004}[/Math]")]>> [Then] [!]***** show new *****[/!] [Include>> file=promos/feb04promo.inc] [/Then]>> [Else] [!]***** show old *****[/!] [Include>> file=promos/oct03promo.inc] [/ELSE]>> [/If]>> >> >> >> On 12 Mar 2004, at 10:30 AM, Kenneth Grome wrote:>> >>> The math context can only deal with dates in American format,>>> right? If so, he will have to change the date format first, because>>> he's not using American date format ...>> Regards>> >> Stuart Tremain>> idfk web developments>> 114a/40 yeo street neutral bay 2089 australia>> t +612 9908 2134>> f +612 9908 4837>> >> >> ------------------------------------------------------------->> 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://webdna.smithmicro.com/> > > -- > > Kenneth Grome> WebDNA Programmer> Outsource Service Provider> Phone: +6332 255-6591> > -------------------------------------------------------------> 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://webdna.smithmicro.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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Ken,We also store all dates as numbers, but if you're using a date comparisonwith a specific date, then you still have to code it in a date format - thedate preference format (unless you happen to know the number since 0).Regards,Tim> From: Kenneth Grome > Reply-To: (WebDNA Talk)> Date: Fri, 12 Mar 2004 08:56:34 +0800> To: (WebDNA Talk)> Subject: Re: Showif date > other date> > That's two different preferences you have to set properly if you> change the default date format, right? Maybe this has been the cause> of some people's problems when not using the default date format,> they perhaps changed only one of the two date format preferences.> > I have never stored dates in formats other than "days since 0000" and> American format (which is webdna's default) but over the years there> have been numerous problems posted when people try doing things with> dates in different formats, so I thought this was still not possible.> > Thanks for confirming this, but I will personally continue to store> dates in the default format (or as days since 0000) just to prevent> any potential new problems in the future ... :)> > > >> Ken>> >> If the prefs are set to read and display European dates the code will work.>> >> I use this code with European Dates set in WebDNA prefs>> >> [If >> ("[math]{[date]}[/Math]">"[math]{01/02/2004}[/Math]")|("[math]{[date]}[/Math]>> "="[math]{01/02/2004}[/Math]")]>> [Then] [!]***** show new *****[/!] [Include>> file=promos/feb04promo.inc] [/Then]>> [Else] [!]***** show old *****[/!] [Include>> file=promos/oct03promo.inc] [/ELSE]>> [/If]>> >> >> >> On 12 Mar 2004, at 10:30 AM, Kenneth Grome wrote:>> >>> The math context can only deal with dates in American format,>>> right? If so, he will have to change the date format first, because>>> he's not using American date format ...>> Regards>> >> Stuart Tremain>> idfk web developments>> 114a/40 yeo street neutral bay 2089 australia>> t +612 9908 2134>> f +612 9908 4837>> >> >> ------------------------------------------------------------->> 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://webdna.smithmicro.com/> > > -- > > Kenneth Grome> WebDNA Programmer> Outsource Service Provider> Phone: +6332 255-6591> > -------------------------------------------------------------> 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://webdna.smithmicro.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://webdna.smithmicro.com/
Tim Robinson
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:
Nav. 4 probs with cart (1997)
MOOOOOO (2000)
Re:Running 2 two WebCatalog.acgi's (1996)
[search] sort problem (2003)
XMLNodes Error (2007)
final on include (1997)
File Uploads: WebCat/SiteEdit (1998)
multiple search commands (1997)
[OT] .php3 extension (2000)
emailer on Windows Beta 18 (1997)
summarizing multiple fields (2000)
totals (1997)
Re[3]: Weird [blank] interpretation (1999)
EIMS Problems (1997)
No shipping systems available? (1998)
Time for a hard questions. (1997)
Stinkin' [Referrer] (1998)
FYI: virus alert (1996)
no global [username] or [password] displayed ... (1997)
File Format Validation (2005)