7 replies
by dklippert
Anything you'll ever want to know about Dates is here:
by biftuk
Sorry, I was hoping to get the date difference between two give dates in dd/mm/yyyy format using visual basic 6.0
Thank you
by sl-campbell
Use the DateDiff function:
DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]])
"interval" is a required string. This determines in what interval the difference is calculated:
"yyyy" = year
"m" = Month
"d" = Day
"h" = hour
"n" = minute
"s" = Seconds
So, if you want to know the date difference in days between the first of the year and todays date use it as:
Debug.Print DateDiff("d","01/01/2002",Date())
by biftuk
by biftuk
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending