0

Might be a really stupid question but I have a date

01NOV68

But when I parse it through php date function date('Y-m-d',strtotime('01NOV68')) it is coming out like this 2068-11-01 is there a way in which i can stop this?

Hayden Sweet
  • 170
  • 1
  • 16
  • How do you expect PHP to "guess" that the date is 20th century rather than current century? You need to tell it which century you want! – Mark Baker May 09 '17 at 14:52
  • This is the information i am getting out of a web services call for a date of birth so i assuming its 1968! – Hayden Sweet May 09 '17 at 14:54
  • But PHP doesn't make the same assumptions that you do: PHP assumes current century, not a previous century; you need to tell PHP what century it should be – Mark Baker May 09 '17 at 14:55

0 Answers0