Set default time in RadDateTimePicker

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 17 Dec 2007 Link to this post


    RadControls for ASP .NET AJAX version 2008.1.415 and later
    .NET version

    2.0 and later (RadControls for ASP .NET AJAX)

    Visual Studio version

    2005 and later(RadControls for ASP .NET AJAX)

    Programming language


    Browser support

    all browsers supported by RadControls for ASP .NET AJAX

    The default time value for a DateTime/TimePicker is 12:00 AM (culture dependent). This value is "recognized" as the empty value, and although in most cases it would not matter, some scenarios might require you to always have a specific (default) time set, without having to prompt the user to do it. This can be easily achieved with a few lines of javascript using a global variable to check if it has not been set already. For more info, please refer to the attached project.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.