Re: [WebDNA] Quick Date Question
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101535
interpreted = N
texte = Thanks for the input, I found something similar in the archives but I kinda thought there might have been something you could do with the [date %U] option.Cheers========================================Steve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880========================================http://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig========================================On 28 Nov 2008, at 11:59, Gil Poulsen wrote:> On Nov 28, 2008, at 6: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.>> Not sure if this is the best way to handle it, but I would think you > could create a [loop] context that would use as the "from" the > numerical date of the first Monday you wanted to start with, like>> [math]{01/07/2008}[/math]>> and [math]{12/29/2008}[/math] as the "to" value. Then just increment > by 7 to get the date numerically for each week and convert it like > this:>> [format days_to_date %d/%m/%Y][index][/format]>> since the [index] values would then become the date of each Monday > in 2008 in succession.>> As far as the week #, you'd just have to set a counter using a math > value, start it at one and increment it by adding one for each > iteration of the loop. Does that help? I'm a rank amateur at this > stuff sometimes but I figured I'd chip in at a time when no one else > might even be awake after the holiday festivities of yesterday (in > the U.S., anyway).>> --> Gil Poulsen, Mac Wirehead>> ************************> AltiM@c Consulting> 23 Marco Polo Court> Franklin Park, NJ 08823-1703> Voice: 609-359-0103> http://altimac.com> ************************>> ---------------------------------------------------------> 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:
Thanks for the input, I found something similar in the archives but I kinda thought there might have been something you could do with the [date %U] option.Cheers========================================Steve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880========================================http://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig========================================On 28 Nov 2008, at 11:59, Gil Poulsen wrote:> On Nov 28, 2008, at 6: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.>> Not sure if this is the best way to handle it, but I would think you > could create a [loop] context that would use as the "from" the > numerical date of the first Monday you wanted to start with, like>> [math]{01/07/2008}[/math]>> and [math]{12/29/2008}[/math] as the "to" value. Then just increment > by 7 to get the date numerically for each week and convert it like > this:>> [format days_to_date %d/%m/%Y][index][/format]>> since the [index] values would then become the date of each Monday > in 2008 in succession.>> As far as the week #, you'd just have to set a counter using a math > value, start it at one and increment it by adding one for each > iteration of the loop. Does that help? I'm a rank amateur at this > stuff sometimes but I figured I'd chip in at a time when no one else > might even be awake after the holiday festivities of yesterday (in > the U.S., anyway).>> --> Gil Poulsen, Mac Wirehead>> ************************> AltiM@c Consulting> 23 Marco Polo Court> Franklin Park, NJ 08823-1703> Voice: 609-359-0103> http://altimac.com> ************************>> ---------------------------------------------------------> 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/
Steve Craig
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:
WebDNA Solutions ... sorry! (1997)
problems with 2 tags (1997)
4.51 Triggers (2003)
Clearing orders and database help! (1997)
Need help with text area (1998)
Emailer Problem (1998)
[include] (1998)
Cool new site (1996)
Help!!!! (1999)
FTP upload TCP Connect (2003)
WebDNA Codes in Secure Mode (1997)
changing order number (1998)
Notice To ICVerify Users (2000)
blank fields (1999)
Fwd: Problems with Webcatalog Plug-in (1997)
simple search Q (2000)
Personal Web Server (1998)
Comments Please ... Omnis Studio v WC (2001)
off topic - dna snipets (1997)
summ=T (2003)