0

I'm using Zend_Date to create dates. How can I get date of the nearest further day of week, Monday, for example. I need to calculate it not only from now, but from any date.

Example. January, 31, Thursday.

I need to calculate date of the nearest Monday.

Result of function call should be February, 4.

freento
  • 2,939
  • 4
  • 29
  • 53

1 Answers1

4

i dont know in zend but surely you can use date('Y-m-d',strtotime('next monday')); in php

Arun Killu
  • 13,581
  • 5
  • 34
  • 61