Link to home
Start Free TrialLog in
Avatar of jayrod
jayrodFlag for United States of America

asked on

Setting a default date for a calendar

Anyone know how to set System.Web.UI.WebControls.Calendar to today's date?

and also how do I parse a dateTime value from the database to set the calendar?
ASKER CERTIFIED SOLUTION
Avatar of jkrill
jkrill

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jayrod

ASKER

once I reparse and get aDate.. can I use it the same way I use DateTime.Now to reset the calendar?
Avatar of jkrill
jkrill

Yes.  DateTime.Now simply returns a DateTime object initialized with the current date and time.