Tag Archives: php.net

The Complex Made Simple

For work, I had a piece of code that needed to cal­cu­late if a cer­tain date fell in between two other days. So I started out writ­ing out this big long func­tion to cal­cu­late if a date fell first within the same year as either of the two dates, and if so within the two