Skip to content
Advertisement

Tag: type-conversion

MySQL code to convert Excel datetime

Excel’s datetime values look like 42291.60493, which means MySQL sees them as strings and not as dates. Is there a MySQL code that can convert them to MySQL datetime? (i.e. like in MS SQL) Answer I can think of 2 solutions: Convert your dates within excel to a formatted date string that conforms to mysql’s date and time format using

Advertisement