Hi, There is no Time object in C#.
But there is an alternate way to fetch the time
through the split method.
So, for that first you have to convert the value
in string and then split that value to get the time value.
DateTime dDate = DateTime.Now;
string[] sDate = dDate.ToString().Split(' ');
Console.WriteLine(sDate[1]);
In above code you will simply get the time but if you want to have time with AM and PM as well then you can concatenate the string as follows
DateTime dDate = DateTime.Now;
string[] sDate = dDate.ToString().Split(' ');
string stime = sDate[1];
string sampm = sDate[2];
stime = stime + " " + sampm;
Console.WriteLine(stime);
Console.ReadLine();