Get the last date of the previous quarter

VPK_Access

Registered User.
Local time
Today, 09:09
Joined
May 15, 2011
Messages
36
Hi,

Is there any formula to get the last date of the previous quarter.
I need to display the aging value and need to compare with this date. Any help please?
 
Try the following method:

Code:
x = Choose(Datepart("q",Date())-1,#3/31/2011#,#06/30/2011#,#09/30/2011#,#12/31/2011#)

Above is a simple method with constant values for Quarter ending dates. You can make date values dynamic by using DateSerial(03,31,year(date())) and for other Quarter ending date values.
 
Thnanks a lot...that worked
 
Hi -

Here's another method that you might want to play with.

From the debug (immediate) window:

x = #1/15/2011#
? DateSerial(year(x), 3 * Int(((month(x)) - 1) / 3) + 1, 1) - 1
12/31/2010

Hope that helps. Best wishes:

Bob
 

Users who are viewing this thread

Back
Top Bottom