@divya.17290
please use as you required.
Use System.DateTime.Now to get current system date and time.
System.DateTime.Now.ToShortTimeString
System.DateTime.Now.ToLongTimeString
You can also get time in specified format using System.DateTime.Now.ToString(“hh-mm-ss”)