I am trying to convert a text to a date using VBA but I keep getting Type Mismatch Error. I have tried to use CDate and DateValue functions.
My date string is like -
Feb 12, 2020 6:00:00 PM
and I want the output to be -
20200212.
Please advise.