in reply to previous and next quarter calculation

Is there any method to find next and previous quarter starting and ending dates based on the current date, using DateTime or any other date modules?

Try the no modules approach: Table lookup.

I'm serious. You can precalculate and store all of the quarter start and stop dates from now until the Unix clock runs out in less memory that most of the date modules will soak you for.

  • Comment on Re: previous and next quarter calculation