Jibbadiah
James
- Local time
- Tomorrow, 08:11
- Joined
- May 19, 2005
- Messages
- 282
I have some code to do this but it is long and laborious (and to be honest... quite rubbish) and I would love to see what other people can come up with... something short and sweet that does the job and nothing more. When I set-up my code a couple of years ago I remember having all sorts of problems with US date format (I'm using UK - "dd/mm/yyyy"). I realise that I could set up a table and manually put the dates in, but I figure it can't be that hard to come up with this date according to the current month.
Any takers?
It is the logic used for our monthly refresh of data... Find first Sunday on or after the 6th of the Month?! (based on the current month). Once I have this date in a robust piece of code the world is my oyster!!
Thanks to everyone that gives this a go.
Cheers,
J.
Any takers?
It is the logic used for our monthly refresh of data... Find first Sunday on or after the 6th of the Month?! (based on the current month). Once I have this date in a robust piece of code the world is my oyster!!
Thanks to everyone that gives this a go.
Cheers,
J.