MySQL Forums
Forum List  »  Newbie

Re: TIMESTAMPDIFF returning null
Posted by: Peter Brawley
Date: September 10, 2017 06:42PM

Those dates appear to be in the oddball US date format.

MySQL stores dates in yyyy-mm-dd format, all date funcs expect.

Use str_to_date('09/06/2017','%m/%d/%Y'). Better, change the start_time and end_time columns to timestamps.

Options: ReplyQuote

Written By
September 10, 2017 01:45PM
Re: TIMESTAMPDIFF returning null
September 10, 2017 06:42PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.