Click here to Skip to main content
15,913,235 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Database design as follows;
holidayDate

holidayDate in database as follows;
2/21/2013
2/25/2013
2/27/2013

dateformat stored in the database is month,date and year format.


using date part query how to get month and year of the date in ms access.

fro the 2/21/2013 date,get the month and year using date part, output required as follows;

month year
2 2013

how can i do.

Please help me.

Regards,
Narasiman P.
Posted

hi try this,


string a = holidayDate.ToString("MM yyyy");


regards,
Prakash.T
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900