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").
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

How to Erase a FileContent in c -Sarp? 7
Doubt 5
clarification is needed 4
doubt 1
Line No 10
Doubt in C-Sharp 1
Doubt 1
Doubt 2

Back
Top