Skip to content

Instantly share code, notes, and snippets.

@ken-itakura
Created June 2, 2023 02:18
Show Gist options
  • Save ken-itakura/de65a28d033a5a44d3a5cfcbe59a73f4 to your computer and use it in GitHub Desktop.
Save ken-itakura/de65a28d033a5a44d3a5cfcbe59a73f4 to your computer and use it in GitHub Desktop.
Excel function to convert date string (mmm/d/yyyy like AUG/31/2021) to Date format
Function MMMDDYYY_to_DATE(datestr As String) As Date
Parts = Split(datestr, "/")
datestr = Parts(2) & "/" & Parts(0) & "/" & Parts(1)
MMMDDYYY_to_DATE = DateValue(datestr)
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment