Solved

Last Monday of Last Year

Posted on 2013-01-14
1
324 Views
Last Modified: 2013-01-15
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
Comment
Question by:halifaxman
1 Comment
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
Comment Utility
This will give you the last monday:

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now