I have a series of about 200 rows with dates that look like:
6/8/19
12/7/19
12/14/20
and so on.
I need to put these in MySQL with a "timestamp" format (which I chose because I needed to default to today's date, and can't find an option for JUST the date).
I'm pretty sure that I need to use DATE_FORMAT, but I can't pin down the syntax. Can you guys and gals suggest the proper way?
Also, can I use it once while defining the columns, or do I have to use it in each row? Eg, can I do this?
INSERT INTO table (id, DATE_FORMAT(something, something, postdate), value) VALUES (...)
Or does it have to be like:
INSERT INTO table (id, postdate, value) VALUES
('1', DATE_FORMAT(something, something, '6/8/19'), 'foo'),
('2', DATE_FORMAT(something, something, '12/7/19'), 'bar'),
('3', DATE_FORMAT(something, something, '12/14/19'), 'whatever')