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

Calendar Control

Status
Not open for further replies.
Feb 14, 2000
425
US
I am useing a Calendar control on an ASP.NET page and all of the sudden Calendar.SelectedDate() is returning a time value instead of date with format of #12:00:00 AM# it used to return #04/21/2006# any ideas what is going wrong here?

Steve Bowman
Independent Technology, Inc.
CA, USA
 
by default the calendar control will show the time as well when selected. You can format the output like this:
Code:
Response.Write(Calendar1.SelectedDate.[b]ToShortDateString[/b])

JIm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top