Q: previous quarters start and end date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

In VB, I want to set to variables value as previous quarters start and end
date, how can I do this?
Thanks,
 
Hello,

In VB, I want to set to variables value as previous quarters start and end
date, how can I do this?
Thanks,

dtStartOfQuarter = DateSerial(Year(Date), 3*((Month(Date)-1)\3), 1)
dtEndOfQuarter = DateSerial(Year(Date), 3*((Month(Date)-1)\3)+3, 0)

John W. Vinson[MVP]
 
Hi John,
Thanks for the reply. It seems this gives the current quarter, not previous.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top