Conversion of dates in the database

0

How to convert a date that is in the format DDMMYYYY to YYYYMMDD ?

I'm having trouble sending this data to different SQL databases, since each has been crafted and is already powered.

    
asked by anonymous 03.09.2014 / 23:09

1 answer

1

If your database is MySQL you can use a mysql function when doing the insert.

DATE_FORMAT(data, '%Y-%m-%d').

  

link

    
03.09.2014 / 23:36