|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Put the date of today in a text controlI 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 Pasquale schrieb:
> I need to create a ASP.NET page that shows in a text control the date of Use the datetime.toString()-method: [1]> 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") [/code] greets, Stefan [1] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemglobalizationdatetimeformatinfoclasstopic.asp -- Stefan Kalcher Programming's just like sex, one mistake, you support it for life. Stefan Kalcher schrieb:
> Pasquale schrieb: With a textbox:>> 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") > [/code] [code] txtDate.text = datetime.now.toString("dd/MM/yyyy") [/code] greets, Stefan -- Stefan Kalcher Programming's just like sex, one mistake, you support it for life.
Highlight a clicked row in a gridview linked to a css
Valid Date Newbie, submit form error on postback Check if Value Has Changed Newbie, error between asp.net 1.1 and asp.net 2.0 How do I reposition Controls inside Panel in designer Formated Data Input Form Sub that Handles different controls adding controls at runtime How Do I Modify Text In A Cell Based On Button Click |
|||||||||||||||||||||||