Put the date of today in a text control

P

Pasquale

I need to create a ASP.NET page that shows in a text control the date of
today (without time) in the format dd/mm/aaaa (the server-client language is
italian) when the page is loaded.

How can I solve this issue?

Thanks
 
S

Stefan Kalcher

Stefan said:
Pasquale said:
I need to create a ASP.NET page that shows in a text control the date of
today (without time) in the format dd/mm/aaaa (the server-client language is
italian) when the page is loaded.

How can I solve this issue?

Code:
datetime.now.toString("dd/MM/yyyy")

With a textbox:

Code:
txtDate.text = datetime.now.toString("dd/MM/yyyy")

greets,
Stefan
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top