doubt

  • Thread starter Thread starter Baskar RajaSekharan
  • Start date Start date
B

Baskar RajaSekharan

Hi,

How to get the Time in C-Sharp. the for mate is like hh:mm:ss. can you
please give me the sample code.

Regards,
R.Baskar
 
Baskar RajaSekharan said:
How to get the Time in C-Sharp. the for mate is like hh:mm:ss. can you
please give me the sample code.

Use DateTime.Now or DateTime.UtcNow to get the date, and then use its
ToString method with the appropriate format (e.g. "hh:mm:ss" or
"HH:mm:ss").
 
Back
Top