is there date function like DateSerial?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I'm trying to totalize hours by day, week, month and year. I have done this
before and is very easy using DateSerial function on Access. Is there any
equivalent for C#?
I'm having trouble with 30 days months and 31 ones.. weeks starting in one
month but finishing in the next one.. I'm trying with DaysInMonth but is
getting complex and complex..
Any ideas?
 
Gis said:
Hello,
I'm trying to totalize hours by day, week, month and year. I have done
this
before and is very easy using DateSerial function on Access. Is there any
equivalent for C#?
I'm having trouble with 30 days months and 31 ones.. weeks starting in one
month but finishing in the next one.. I'm trying with DaysInMonth but is
getting complex and complex..
Any ideas?

DateTime t = new DateTime(2004,11,12,8,38,05);

David
 
Back
Top