0

I need a date which is 35 years ahead of a date which is user input. With the following code in php

$DoCndm=date("Y-m-d",strtotime($_POST['DoH'] ." +35 years"));

I found that it works correctly upto 22 years but returns output as 1970-01-01 for 23 and above.. Is it a bug ??

1 Answers1

3

Read this link Year 2038 problem

You can not use unix timstamp above 2038 year

Evgeny
  • 3,910
  • 2
  • 20
  • 37