I am able to get date and time using:
DateTime now = DateTime.Now;
How can I get the current date and time separately in the DateTime forma
for month
DateTime.Now.ToString("MM");
for day
DateTime.Now.ToString("dd");
for year
DateTime.Now.ToString("yyyy");