I'm writing a program that I want calculate a date difference. The problem is that the end date (Now) is formatted the way I want with the date and the time, but the starting time is just the date. I want the calculation to befrom midnight on the specified date till Now. Here's the code:
Any suggestions?
VB.NET:
today = Now
start = #1/4/2006#
Format(today, "mm/dd/yyyy HH:mm:ss")
Format(start, "mm/dd/yyyy HH:mm:ss")
days = DateDiff(DateInterval.Day, start, today)