how to capture date/time using "out of box" controls

Posted on 2011-05-12
Last Modified: 2012-05-11
I have a web form that requires the user to enter a date and time.

The closest I can find for this functionality is:
 - calendar control with the  AJAXControlToolkit CalendarExender for the date
 - textbox with Ajaxcontroltoolkit  maskededitextender (where MaskType="Time")
-  3 ddls: one for hour, one for minute, one for seconds

Here is the part that makes this challenging: I don't want to use a 3rd party control like Peterblum.

Can anyone share their magic for how to capture date and time using "out of the box" web controls?  

Thank you so much for helping!
Question by:ToolTimeGang
    LVL 10

    Expert Comment

    hmmm... i'm not sure i understand your question... if you use the Calendar, then you get the date without problems in the back-end... and for the time, if you have a known interval
    (Example: spans of 15 minutes: 12:00, 12:15, 12:30, 12:45, 1:00, etc)
    then all you need to do is setup a drop-down with a loop to populate it, and you're done.

    Author Comment

    Yes.  That is correct.  I was wondering however if I could capture the date/time using just one control.  I'm thinking that is not possible however.

    So I am on the right track then hey?  (thx for getting back to me so quickly!)

    I'm thinking this might be a good candidate for a user control!
    LVL 10

    Assisted Solution

    yeah if you want to do both in one control, override the calendar control / make your own user control with both of these in it. there's no inherent control in ASP.Net to capture both the date and time in one.
    LVL 9

    Accepted Solution

    Are you open to use jQuery ?

    You can have a look here:

    Author Comment

    MaxOvrdrv2:  Thank you again!

    qery128: yes!  not using jQuery yet, but this is a great way to get going on it.  I really like the example.
    thank you for sharing.

    I will split the points between both of you.

    thanks again for helping.  I am trying to get my skillset updated from 1.1 to 4.0.  Lots to learn.  I am very thankful I have Experts to guide me in that transition.

    LVL 9

    Expert Comment

    Glad to help :)

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now