Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Locale dependant usage inspection for Implicit Date to String conversions #2445
There are many functions that accept string parameters. for example, the
That can result in unpredictable results, either because of unexpected characters in the date-string, or because the order/appearance of the various date-parts might differ by region.
For example, this code tries to fix the invalid characters in a filename, but doesn't fix the date-parts
DateNow = Date() filename = Replace(DateNow, "/", "-") 'Who knows what filename looks like at this point...
A better solution, in this instance, would be:
DateNow = Date() filename = Format$(DateNow, "YYYY-MM-DD")