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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top