Re: Calender code II
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 60987
interpreted = N
texte = Doh! OK, I'm really not sure why I added the extra [math date] only to then remove the date formatting with a GetChars!!Sometime I really do think way too inside that box!Anyway, here's the actual code.[math]{[math date]{01/[chosen_month]/[chosen_year]} + {0/1/0000}[/math]} - {01/[chosen_month]/[chosen_year]}[/math]Mark.On 10 Feb 2005, at 14:15, Mark Derrick wrote:> For some unknown reason, the calendar code that I've used for ages has > decided to not work for me anymore :-)> I downloaded the original SM Calendar code, but that also refused to > display correctly - this may be due to me using European date formats.>> Anyway, rather than spend time trying to fix it, I thought I'd finally > get around to write my own.>> I'm just currently coding the part which works out how many days are > in the month specified.> Here's the code I have so far - seems to work OK, but thought I'd open > it up to see if anyone can find any problems I may incur doing it this > way.>>> Remember, this is using the dd/mm/yyyy format.>> [GetChars start=1&end=2]> [math date]{[math date]{01/[chosen_month]/[chosen_year]} + > {0/1/0000}[/math]} - {01/[chosen_month]/[chosen_year]}[/math]> [/GetChars]>> Thanks.>>> -------------------------------------------------------------> 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:
|
- Re: Calender code II ( Mark Derrick 2005)
|
Doh! OK, I'm really not sure why I added the extra [math date] only to then remove the date formatting with a GetChars!!Sometime I really do think way too inside that box!Anyway, here's the actual code.[math]{[math date]{01/[chosen_month]/[chosen_year]} + {0/1/0000}[/math]} - {01/[chosen_month]/[chosen_year]}[/math]Mark.On 10 Feb 2005, at 14:15, Mark Derrick wrote:> For some unknown reason, the calendar code that I've used for ages has > decided to not work for me anymore :-)> I downloaded the original SM Calendar code, but that also refused to > display correctly - this may be due to me using European date formats.>> Anyway, rather than spend time trying to fix it, I thought I'd finally > get around to write my own.>> I'm just currently coding the part which works out how many days are > in the month specified.> Here's the code I have so far - seems to work OK, but thought I'd open > it up to see if anyone can find any problems I may incur doing it this > way.>>> Remember, this is using the dd/mm/yyyy format.>> [GetChars start=1&end=2]> [math date]{[math date]{01/[chosen_month]/[chosen_year]} + > {0/1/0000}[/math]} - {01/[chosen_month]/[chosen_year]}[/math]> [/GetChars]>> Thanks.>>> -------------------------------------------------------------> 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/
Mark Derrick
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:
WebCatalog for Postcards ? (1997)
WebCat2b12 CGI Mac -- Problems propagating the cart through (1997)
Help with dates (2001)
Help! WebCat2 bug (1997)
getchars broken? (1997)
2 easy questions re: [showif] and [sendmail] (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
week # as date (2001)
emailer stuck (1997)
Location of Browser Info.txt file (1997)
Never ending problem.... (2000)
Problem with version 4 browsers (1998)
Quick ShowIf question (1997)
PCS Frames-Default page is solution! (1997)
[accountNum] and [math] (1997)
bug in wn searching NT version? (1997)
WebCatalog for Postcards ? (1997)
Summary search -- speed (1997)
WebCat ignoring Shopping Cart Folder (2001)