I am trying to reformat a date from a short date format (e.g. 07/31/2018) to this custom format MMDDYY. So if the date is 07/31/2018, I would like to make it 073118.
I'm really at a loss on how to do this. The code below lets me extract the first two digits on the left of the first slash. But I'm unsure how to extract the rest as well as work around the extraction with two slashes. Could somebody please lead me in the right direction to accomplish this?
If InStr(strRDate, "/") > 0 Then
strRDateL = Left(strRDate, InStr(strRDate, "/")-1)
If Len(strRDateL)=2 Then
subMoveCursor 11, 10
subEnterData strRDateL
End If
End If