Jump to content

3 years from a certain date


jeff5656

Recommended Posts

Well the problem with that is that it assumes the current year is 2010.  This wouldn't work next year right? (because it assumes 3/1/2010)

Use what simshaum showed or this is easier if you always want 3 years from 3/1/current_year:

'3/1/'.(date('Y')+3);

I was assuming that you had the start date in a variable or something and wanted to do a calculation.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.