Creating digital clock. I’m newbie to C#. My code look like that
timeLbl.Text = DateTime.Now.ToLongTimeString();
dateLbl.Text = DateTime.Now.ToLongDateString();
Here is, the result
I got some questions:
- Can I change time’s format to 24 Hour? how?
- How to change date into digits only format (like dd/mm/yyyy) or this result but in exact language (I mean, words “Monday, July” in another language, which windows support, for ex Turkish)?
- How to make window dynamically change it’s width (depending on text
length)?
Please help me,to achieve these 3 things. Thx in advance
Ans 1:
Will convert time to 24 hour format.
Ans 2:
Will convert date format to
31/06/2012More formats here