HomeCommunityControl GalleryForm ControlsDate, Time, & CalendarASP.NET Time Picker Control

ASP.NET Time Picker Control



(41) Submit a Review

15,415 Downloads

108,985 Views


Description

An ASP.NET time picker control that resembles the windows time that is displayed in the taskbar of XP. Behaves much the same way.
Works well in conjunction with a datepicker control for appointment settings. Also contains Clock functionality. Assembly also contains a validator that takes a List argument and allows the TimePicker to be aware of any appointment conflicts.

Syntax Example

&lt;cc1:TimeSelector ID="TimeSelector2" runat="server" Date="05/10/10 2:30:00 PM" MinuteIncrement="15" AllowSecondEditing="false" /&gt; &lt;cc1:TimeSelector ID="TimeSelector3" runat="server" EnableClock="true" /&gt; <b>Validator Example, AllowSecondEditing set to false</b>: &lt;MKB:timeselector ID="TimeSelector3" runat="server" MinuteIncrement="15" /&gt; &lt;MKB:TimeSelectorAvailabilityValidator ID="TimeSelectorAvailabilityValidator1" runat="server" ControlToValidate="TimeSelector3" Display="Dynamic" ErrorMessage="That time is already taken!" /&gt; <b>Validator Code Behind</b>: List&lt;DateTime&gt; list = new List&lt;DateTime&gt;(); list.Add(DateTime.Now); list.Add(DateTime.Now.AddSeconds(30)); list.Add(DateTime.Now.AddMinutes(30)); list.Add(DateTime.Now.AddHours(3)); TimeSelectorAvailabilityValidator1.AppointmentList = list; TimeSelectorAvailabilityValidator1.AppointmentLengthInMinutes = 90;

Screenshots

Reviews

Submit a review

00:00:00

Reviewed by: oguzkaygun on Saturday, April 20, 2013

1 Stars

When i try to filter between 00:00:00 and .......... it give me error. it accept 00:00:00 but it give error. Huge problem. Same while inserting time.

Get the value of control

Reviewed by: adnan dani on Sunday, December 23, 2012

4 Stars

hi i have used this control within a details view. i want to update the value of the control in a template field. but it is giving error of "specified cast is not valid" on updating. Pleas give me any idea how it will be implemented within a details view.

How to get time

Reviewed by: schwimms on Thursday, August 02, 2012

3 Stars

Dim time As Date = TimeSelector.Date Dim selectortime as string selectortime = time.ToString("h:mm tt")

Vinod Ingle

Reviewed by: VinodIngle on Monday, July 23, 2012

3 Stars

this is good control but i want pick up control value how to get,,,please give me solution on email id :vinod16ngp@gmail.com

Acessing Value In JavaScript

Reviewed by: rajin on Wednesday, June 27, 2012

3 Stars

How can i access value of this time picker using javascript

Need Doc

Reviewed by: Johnny_O on Saturday, March 24, 2012

5 Stars

Great control, but I really need documentation. The link to it on evey site is broken. Thanks.

Broken link

Reviewed by: Asyncritus on Friday, January 13, 2012

1 Stars

I can't download the control. Goes to an error page.

link broken

Reviewed by: BSpicher on Friday, December 30, 2011

5 Stars

Unable to download code sample

Cotrol needs Strongly named Assembly

Reviewed by: anuraj44 on Monday, October 17, 2011

4 Stars

Hi, Your control is working very good. But if i want to place it in GAC its trhowing an error as Access Denied. I think this error is "The Dll is not a strong named assembly". So i want a DLL that is strongly Named Assembly. Pls send it to my mail. My Id is: anuraj44@gmail.com Thanks & Regards, Rajesh M

Download?

Reviewed by: grinnellja on Thursday, October 13, 2011

3 Stars

There is no documentation telling me where to extract this file to. I downloaded it but where does it go?

Positioning the Date Time Picker

Reviewed by: rudolphscott on Thursday, August 11, 2011

3 Stars

Hi. I am using this on my ASP web page but when I place it on the form it only goes on the left hand side and I am not able to move the control to the middle of the page. Can you let me know how to do this? Thanks. Rudy.

0 Hour issue

Reviewed by: slavva_p on Wednesday, June 29, 2011

5 Stars

Nice control. There is an issue, when the hour is set to 0-zero and SelectedTimeFormat="TwentyFour", after post back the hour value is disappeared. Any fix?

Exactly what I needed

Reviewed by: jeremymia on Saturday, June 04, 2011

5 Stars

Great component, great interface, thank you so much.

Working With 2.0

Reviewed by: zeb_ms on Monday, May 23, 2011

5 Stars

how this control work with .net framework 2.0 . when i want to add in 2.0 project it give me the we error message. the error message is " timepicker.dll one of its dependiences require later version then the one specified in the project"

Where can I get the latest dll file?

Reviewed by: Raymond Zheng on Tuesday, May 03, 2011

5 Stars

Hi Michael, Could tell me where can I get the latest dll file? I know you had updated the control several times, but what i can download is still the one of May 24, 2010.

how to get the latest dll file?

Reviewed by: Raymond Zheng on Tuesday, May 03, 2011

5 Stars

Hi Michael, Could you tell me how can i get the latest dll file? I know you had updated the control several times, but what i download is still the one of May 24, 2010. Thanks.

Please help me

Reviewed by: nicklibee on Thursday, March 31, 2011

5 Stars

Hello, Thanks for the control. Its easy to use. Can you please let me know how to disable the clock? thanks nick

Perfect!!

Reviewed by: hoytrobinson on Wednesday, January 12, 2011

5 Stars

Absolutely what I was looking for. It has everything it needs...

My search is over!

Reviewed by: rvandyke on Monday, December 13, 2010

5 Stars

I've been looking months for this! Thank you so much.

Events

Reviewed by: arandhawa on Thursday, November 04, 2010

4 Stars

Would be nice to have: 1. A time changed event 2. MinDateTime and MaxDateTime properties to limit choice

Excellent

Reviewed by: sirdneo on Thursday, October 14, 2010

4 Stars

It is really a great control, I have seen many open source controls but none of them are up to this level.

Good, but...

Reviewed by: Dobly on Tuesday, September 21, 2010

3 Stars

My post below talks about the TimePickers inablity to have a CssClass assigned to it (that works) My next bugbear is that I can't disable it. I have a page where I'd like to have the control there, but have it so it cannot be used. So I tried this. tsActivityTime.Enabled = false; (where tsActivityTime is my instance of the control). It remains enabled and the font is not dimmed (Like on regular .NET controls)

I take it back

Reviewed by: Dobly on Tuesday, September 21, 2010

4 Stars

In my post below I said I could not get .enabled to work. I since found .ReadOnly. That does the job. Back up to 4 stars. Now if i can just change the font.

Exactly what I was after, but...

Reviewed by: Dobly on Monday, September 20, 2010

4 Stars

I can't seem to make it use its CssClass setting. The font in it is wrong for my needs. Plus, I need to set a border around its text box.

Button not working in datalist

Reviewed by: azharkp on Friday, July 30, 2010

5 Stars

Hi, great work, just what I wanted ... But the buttons doesn't work in the datalist, please advise, thanks

Binding

Reviewed by: carlitta87 on Thursday, June 24, 2010

3 Stars

Im not sure if it can be binded to anything in a db...using SQL 2005

Bug in 24 hour format

Reviewed by: Hans Kaltbrunner on Tuesday, June 08, 2010

3 Stars

In the 24 hour format a time between 00:00 and 00:59 cannot be displayed. Goto http://www.michaelkbell.com/timepicker/, on the "SelectedTimeFormat set to TwentyFour" select 00:30:00, then click the button "Postback Value Persistence Test", then click again.

Love it!

Reviewed by: mlg1906 on Tuesday, May 04, 2010

5 Stars

This is EXACTLY what I needed...Thanks! Looking forward to it accommodating military time.

Update

Reviewed by: ral2108 on Monday, April 26, 2010

5 Stars

I noticed that firefox handled setting the focus just fine, but IE does not. Anyone know of a workaround? I must support IEv6 or higher

Multiple pickers, set focus

Reviewed by: ral2108 on Friday, April 23, 2010

5 Stars

I have 2 of these on 1 page. When you choose the time on 1, then go to choose the time on the other, unless you click inside the box the arrows will continue to control the first time picker. How did you get around this in your example? Thanks!

Compatibilty

Reviewed by: nethobbit on Sunday, February 14, 2010

1 Stars

Does not work if you use Ajax 1.0.

my question

Reviewed by: Laiba on Tuesday, January 05, 2010

3 Stars

i have a problem... i want to insert time in database through time selection control.. plz let me know how can i do that

Great work, but how do I set values?

Reviewed by: jomski on Sunday, September 27, 2009

5 Stars

This is precisely what I have been looking for. An additional feature I would have loved to see was the ability to set the value of the control with values read from a database. The workaround I had to was a little cumbersome, or maybe I did not know where to look. :D

sdfs

Reviewed by: mhmoud_aburomi on Wednesday, August 12, 2009

5 Stars

sdfsdf

great functionality, shame about the tables

Reviewed by: nickel101 on Wednesday, May 27, 2009

4 Stars

any chance of getting this without the table slapped around it? other than that, great control!

Combie Date and Time Picker

Reviewed by: nmreddy83 on Friday, May 22, 2009

4 Stars

Hi, It is good to see a very good Time Picker Control. I feel if you mix both Date & Time in to a control that would be nice thank you, -nm

Cannot Extract the file

Reviewed by: zhixuen on Sunday, April 26, 2009

5 Stars

I downloaded the file but I couldn't extract it. What is the problem ?

TimePicker

Reviewed by: danny117 on Wednesday, March 25, 2009

5 Stars

Looks Great!

Simple and elegant control

Reviewed by: thelightkeeper on Tuesday, March 17, 2009

5 Stars

Nice and simple control. Very easy to use. Thanks and pls keep up the good work

Really good stuff

Reviewed by: kvasanthkumar on Sunday, February 15, 2009

5 Stars

This is what i have been looking for. Would be better if value of seconds could also be retrieved. Vasanth

Nice and easy to use.

Reviewed by: varundev4u on Friday, February 13, 2009

5 Stars

Life is more easy now, thanks.