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
Current Time :
DateTime.Now.ToString("HH:mm:ss");
Current Date :
DateTime.Today.ToString("dd-MM-yyyy");