SpiritOfLennon
IS-IT--Management
Hi,
I'm struggling with dates in vb6. I'm trying to take todays date and output in the format 'ddmmyy'.
I thought this would be relatively easy and currently have
the code below.
Dim today As Date
today = Format(Date, "ddmmyy")
MsgBox today
The output is 04/07/2751, so obviously I'm missing something.
Does anyone know how I can get today's date in the correct format for example 311007
?
Your help would be greatly appreciated.
SOL
I'm only guessing but my guess work generally works for me.
I'm struggling with dates in vb6. I'm trying to take todays date and output in the format 'ddmmyy'.
I thought this would be relatively easy and currently have
the code below.
Dim today As Date
today = Format(Date, "ddmmyy")
MsgBox today
The output is 04/07/2751, so obviously I'm missing something.
Does anyone know how I can get today's date in the correct format for example 311007
?
Your help would be greatly appreciated.
SOL
I'm only guessing but my guess work generally works for me.