[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 336
  • Last Modified:

Last Monday of Last Year

Using CR2008

I am looking to find the date of last Monday of the last year (in the current case this would be 31/12/2012.) This will be used in a formula for subsequent years.

Can anybody help?

Thanks
0
halifaxman
Asked:
halifaxman
1 Solution
 
peter57rCommented:
This will give you the last monday:

datevar yend;
yend:=dateserial(year(currentdate)-1, 12,31);
yend-dayofweek(yend)+2
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now