Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21246

Display Date in specific format

$
0
0
How do i display the date in a specific format of MM - DD- YYYY I can pull the date but its seperated by / and only single digit i need the - seperators

Code:

Text1.Text = Date
gives me the date as 4/5/2013

i need it as 04-05-2013

i tried
Code:

Text1.Text = Format$(Date, MM - DD - YYYY)
and i get 41369

whatever that is supposed to be :confused:

Viewing all articles
Browse latest Browse all 21246

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>