When I transpose a 1 dimensional array, containing dates, in order to print them to a sheet in it\'s entirety, some dates are changed from the dd/m
After doing some more research, I have found the following:
It would seem that the Application.Transpose(arrDate)
transposes not only the array, but also date values when they are stored as actual date.
Consider the date , 42373
(January 4, 2016)
Debug.Print Format(CDate(42373), "mmmm d, yyyy")
januari 4, 2016
Debug.Print Application.Transpose(Format(CDate(42373), "mmmm d, yyyy"))
april 1, 2016
It appears that a date value can be transposed when stored as an actual date. The transposing effectively reorders the date from day/month
to month/day
after which the the month becomes the day and the day becomes the month because the system still uses the day/month
format. This can only be done if the day of the month is 12 or less, because after transposing the day becomes the month.