November 7th, 2003, 03:56 AM
how to get month in datetime field database
how to get month in datatime field in database .
i want to code in c#
November 10th, 2003, 01:31 PM
You want to extract the month of a datatime field ?
I don't know exactly for c# but should be similar.
in Vb.Net you do month(yourfield in date format) and you will get it. I hope it's help you solve your problem.
November 10th, 2003, 09:10 PM
this is how I get the month
to get the month string like November, December etc...
int theMonth = ((System.DateTime)yourDateTimeFieldObject).Month;
int theMonth = ((System.DateTime)yourDateTimeFieldObject).ToString("MMMM");