how to access system data and time in C#

This is mostly use task in software programming.

if we want to access system date and time use following code

ex1 :  In this example I set the system date value of the label

              labelName.text = System.DateTime.Today.ToLongDateString();

* you can change the date format changing this conversion statement 


Thank you, Have a nice day..!!!!

Categories:

Leave a Reply