Convert text to date

1

Hi, I'm working with materialize css, and obviously JS, I want to convert a string whose format is this: Mar 12, 2018 I want to convert that to Date so I can store it in the DB as Date.

    
asked by Brian Hernandez 12.03.2018 в 08:13
source

1 answer

1

I already solved it with this:

$this->formatoFecha = strtotime($this->edad);
    
answered by 12.03.2018 в 08:18