Re: [WebDNA] Quick Date Question

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 101536
interpreted = N
texte = Steve, drop this in and see how it goes. I always have too much on my plate too, but it is fun to make offerings when I can :-) -Govinda ------------------------------------------ [math show=F]nStartOfYear=[math]{01/01/[DATE format=%Y]}[/math][/math] [loop start=0&end=6&advance=1] [math show=F]nIsItMonday=[nStartOfYear]+[index][/math] [showif [URL][Format Days_To_Date %a][nIsItMonday][/format][/URL]=mon] [math show=F]nFirstMon=[nIsItMonday][/math] [/showif] [/loop] [loop start=0&end=365&advance=7] [math show=F]nDate2Show=[nFirstMon]+[index][/math] 
Week [Format Days_To_Date %U][nDate2Show][/format] - [Format Days_To_Date %m/%d/%Y][nDate2Show][/format] [/loop] ------------------------------------------ On Nov 28, 2008, at 4:44 AM, Steve Craig wrote: > Hi > > I'm suffering from having to many different things to do today and > I'm struggling with what I think should be an easy thing, can > someone help? > > I need a bit if code that will give me a list of week numbers (1-52) > in the current year, with the date of the Monday of each week ie... > > Week 1 - dd/mm/yyyy > Week 2 - dd/mm/yyyy > ... > ... > ... > Week 52 - dd/mm/yyyy > > Can anyone help with any pointers please. > > Cheers > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1330 860550 Fax +44 1330 860880 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Quick Date Question (Govinda 2008)
  2. Re: [WebDNA] Quick Date Question (Govinda 2008)
  3. Re: [WebDNA] Quick Date Question (Steve Craig 2008)
  4. Re: [WebDNA] Quick Date Question (Gil Poulsen 2008)
  5. [WebDNA] Quick Date Question (Steve Craig 2008)
Steve, drop this in and see how it goes. I always have too much on my plate too, but it is fun to make offerings when I can :-) -Govinda ------------------------------------------ [math show=F]nStartOfYear=[math]{01/01/[DATE format=%Y]}[/math][/math] [loop start=0&end=6&advance=1] [math show=F]nIsItMonday=[nStartOfYear]+[index][/math] [showif [url][Format Days_To_Date %a][nIsItMonday][/format][/URL]=mon] [math show=F]nFirstMon=[nIsItMonday][/math] [/showif] [/loop] [loop start=0&end=365&advance=7] [math show=F]nDate2Show=[nFirstMon]+[index][/math] 
Week [Format Days_To_Date %U][nDate2Show][/format] - [Format Days_To_Date %m/%d/%Y][nDate2Show][/format] [/loop] ------------------------------------------ On Nov 28, 2008, at 4:44 AM, Steve Craig wrote: > Hi > > I'm suffering from having to many different things to do today and > I'm struggling with what I think should be an easy thing, can > someone help? > > I need a bit if code that will give me a list of week numbers (1-52) > in the current year, with the date of the Monday of each week ie... > > Week 1 - dd/mm/yyyy > Week 2 - dd/mm/yyyy > ... > ... > ... > Week 52 - dd/mm/yyyy > > Can anyone help with any pointers please. > > Cheers > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1330 860550 Fax +44 1330 860880 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ Govinda

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:

[item] appears after 'remove last item' ... (1997) incrementing a counter remotely? (1999) passing cart value (2003) WebCat2 - Getting to the browser's username/password data (1997) RE: E-mailer error codes (1997) Lock out multiple users with same password? (1999) Problem with 2.1b3 (1997) Please post more "exceptions to the rules" ... (2005) Summarizing on two fields (1998) [TaxableTotal] - not working with AOL and IE (1997) Almost a there but..bye bye NetCloak (1997) The beginning (1997) [WebDNA] Secure Cookies (2009) Separate SSL Server (1997) HELP-1!!! (1998) Need help!! on searching in two databases. (1998) Beta Documentation (1997) 2.0 Info (1997) rename a file (1997) OK, here goes... (1997)