This burns me... when something that should be so easy become soooo hard... .and even worse, knowing you found the answer once, then losing it and having to search ALL OVER AGAIN!!!!
So I'm blogging it -- hope I dont forget how to find this stupid blog!
** So the answer is that you have to turn your DATE into a STRING if you want to keep leading zero's. So you have a date - you then need create a string variable (from what I can gather DATES will always get rid of the zero's) - THEN you can format that date as such:
Dim DateString As String = Date.ToString("MM/dd/yyyy")
==========================
MM - adds the zero to the front of month (lower case is for minutes)
dd - does the same to the day (no uppercase)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment