I started to use the React-datetime component and I have the next command:
<Datetime style = {dateTimePickerCSS} dateFormat='YYYY-MM-DD' timeformat='hh-mm-ss' onChange={(value) => this.setState({modalWLStart: value})} />
if I select '2017-07-12 12:00 AM' then for value I get 1499839200000 but I wish I could get the output as:
2017-07-12 12:00:00
not using AM or PM so I can send the value to a mysql DB. Is this possible? how?
One more question, how are values like 1499839200000 related to dates?
Can you please let me know? thanks