Hello:
How do I get the system date and enter it into a textBox?
How do I: Get system date?
6 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
kiran kumarRank #3,110 · 461 reputationPosted Mar 15, 2010, 12:50 AM EDT
textbox.text=DateTime.Now.ToString("d");
mark the answer if it helps you
Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 15, 2010, 12:45 AM EDT
Textbox.Text=System.DateTime.Now;
mark as answer.
GustavoRank #1,990 · 732 reputationPosted Mar 15, 2010, 12:53 AM EDT
YES...thats it. Is there a way to change the format of the date to yyyy/mm/dd?
kiran kumarRank #3,110 · 461 reputationPosted Mar 15, 2010, 1:02 AM EDT
GustavoRank #1,990 · 732 reputationPosted Mar 15, 2010, 1:03 AM EDT
Thanks, I tried yyyy/mm/dd and it gave me some strange month, so I changed it to yyyy/MM/dd. (mm->MM).
Thanks again
Mike GoldRank #50 · 30.6K reputationPosted Mar 15, 2010, 10:14 PM EDT