Link to home
Start Free TrialLog in
Avatar of Millkind
MillkindFlag for Afghanistan

asked on

Date TIme Conversion

I get the date in from a  date time picker.
I want to keep the date and set the time to midnight so that.
bsv = DateDiff(DateInterval.Minute, '''this is bs.value with the time set to 00:00:00''', bs.Value)
will be the number of minutes from midnight of the selected day to the bs.value
ASKER CERTIFIED SOLUTION
Avatar of lojk
lojk
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Millkind

ASKER

jep just that easy arrrghhhh
the .net framework' completeness is its strength and weakness. It is so difficult sometimes to find the function you need to then realise the next week after struggling with it there was a better quicker easier way to do it...

still the equivalent command in vb6 was several lines long...


thx for points..