56
Comments
  • 7
    Hmm I guess DateTime is not a thing haha
  • 5
    I'm not using PHP anymore, but I think it was possible directly in 1 Line. Something like $date = date("Y-m-d");
  • 5
    @GC97 its actually $date = date('Ymd');
    And you could parse the other date with mktime...
  • 0
    i used to code like that when im still a noob
  • 1
    Wait... What day is it?
  • 2
    I think this strongly suggests someone who has copied and pasted a "date" function call from somewhere and has no idea what it does. There's a lack of logic there which is very, very scary to me.
  • 2
    @CrankyOldDev I know, right! And these guys made a whole application that was used for almost 10 years... Who knows what else is in there.
  • 2
    My eyes are bleeding !!!!
  • 2
    "Oh no, it's retarded"
  • 0
    It works, who cares about the length :)
Add Comment