I am trying to read an excel file containing some date variable. But when I use the function to read the file and display the variable I get different format for two of my variables as in these following example.
date1
[1] "2009-05-22 UTC" "1995-09-13 UTC" "1996-03-20 UTC" "2006-17-05 UTC" "2005-09-25 UTC" "2004-12-15 UTC" NA NA "1997-05-30 UTC"
date2
[1] "2016-05-07 08:57:00 UTC" "2014-07-22 19:01:00 UTC" "2018-12-02 12:14:00 UTC" "2020-01-11 13:27:00 UTC" "2013-14-21 11:40:00 UTC"
[6] "2019-08-15 09:31:00 UTC" NA NA "2016-07-23 00:00:00 UTC"
How can I convert format of date2 in format of date1