Created
May 8, 2014 18:30
-
-
Save brucemcpherson/ab8d86ce1bfb10a81121 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' use like this =displayAnOldDate(makeAnOldDate(1891,1,2)) | |
Option Explicit | |
Public Function makeAnOldDate(y As Long, m As Long, d As Long) As Double | |
makeAnOldDate = DateSerial(y, m, d) | |
End Function | |
Public Function displayAnOldDate(oldDate As Double) As String | |
displayAnOldDate = Format(oldDate, "dd-mmm-yyyy") | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment