Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Question

Status
Not open for further replies.

quinnipiac0807

Programmer
Oct 25, 2004
38
US
I'm pulling a date out of a database and putting it in a label on my .aspx page. My question is, what is the easiest way to format the date to this format. mm/dd/yyyy. A shortdatetime format. I've found many different ways to do it but I wanted to know what the easiest is. This is how I pull it out of the database and post it now, using my class.

txtStartDate.Text = Convert.ToString(project.ProjStart);

Just looking for suggestions....Thanks
 
As long as you don't have any internationalization concerns (all your users are in one country), then this will work fine.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top