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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manipulating DateTime 2

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
I have a datetime field in sql. I am applying it to a lable in one particular instance where I only need the date string - how can I take out the time?

[conehead]
 
or i guess you can also do:

mylabel.text = System.DateTime.Now.ToShortDateString()

-DNG
 
Or simply do it in the SQL if you don't need the time


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top