Quantcast
Channel: Using timers and DateTime.Now
Viewing all articles
Browse latest Browse all 12

Using timers and DateTime.Now

$
0
0
Check out DateTime.ToString().  You can use textblock1.Text = DateTime.Now.ToString([format])

Particularly, check out the Standard format strings, and then the Custom Format strings.

If you are using ToString(), especially with DateTime objects, you will want to know that in different regions - date and time are in different formats.   Some have MM/DD/YYYY, some DD/MM/YYYY.  The link above has info about that too and how to deal with it.

Hope it helps.

Viewing all articles
Browse latest Browse all 12

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>