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:
Re:FYI: Error message (1996)
WebCatalog 4 Install Problems - Not Answered ?? (2000)
bannerads (1998)
[movefile] (1999)
no template caching (1997)
bug in [SendMail] (1997)
[tcpconnect] doing nothing- SM any help here??? (2001)
Not really WebCat (1997)
info (1997)
Updating a database once per day - An example (1998)
Re:Version 2.0 and 1.6 simultaneous (1997)
Shopping Cart Problem (1998)
Upcoming 2.1 Release and PCS Committment (1997)
WebCat2b12 - nesting [tags] (1997)
SET (1998)
Word search (1997)
Thanks and Big News!!! (1997)
Random Command (1997)
Targeted Redirect (1999)
Multi-processor Mac info ... (1997)