OzGrid

How to convert mmmm d yyyy to dd/mm/yyyy

< Back to Search results

 Category: [Excel]  Demo Available 

How to convert mmmm d yyyy to dd/mm/yyyy

 

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:

 

Code:
  d = CDate("February 12 2017")

but to make sure it's always in the format you want then

Code:
  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.

 

Gallery



stars (0 Reviews)