Requirement:
The user receives data with the dates as text formatted like:
June 6 2017 or
June 16 2017 or
February 6 2017
etc (Spaces between)
Solution:
d = CDate("February 12 2017")
but to make sure it's always in the format you want then
dte = Format(Cdate(thedate), "dd/mm/yyyy")
Obtained from the OzGrid Help Forum.
Solution provided by rabsoftly.
See also: Index to Excel VBA Code and Index to Excel Freebies and Lesson 1 - Excel Fundamentals and Index to how to… providing a range of solutions and Index to new resources and reference sheets
See also:
How to find the maximum date within date range |
How to drag every Nth column, with varying starting column by date |
How to drag every Nth column, with varying starting column by date |
How to count non blanks 5 years from the last non blank date |
How to use SUMPRODUCT with dates |
Click here to visit our Free 24/7 Excel/VBA Help Forum where there are thousands of posts you can get information from, or you can join the Forum and post your own questions.