- using System;
- namespace Enum
- {
- enum MonthName { Jan=1, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec }
- class EnumManualNumberSetup
- {
- static void Main(string[] args)
- {
- DateTime today = new DateTime(2015, (int)MonthName.Jun, 8);
- Console.WriteLine("Date of Today: {0}", today);
- }
- }
- }
Output:
Date of Today: 6/8/2015 12:00:00 AM