I am trying to convert the following code block from 12/04/2019 to long, and then back to string again.
But it seems the Long value is incorrect? I am doing this conversion as a test to see how well the parsing works.
Notice 12/04/2019 is now changed to 12/30/2019
Test 1 - This works now. "Y" is meant for Week Year, not regular year.
DateTime.DateFormat = "MM/dd/yyyy"
Dim lDate As Long = DateTime.DateParse("01/12/2019")
DateTime.DateFormat = "MM/dd/yyyy"
Dim sDate As String = DateTime.Date(lDate)
Log(sDate)