473,804 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Time picker

I have a time field in an application. I am looking for some kind of
pop up function that lets me insert a time.
So its like a calendar pop up but you can choose a valid time instead
of a date

Has anybody here made such a function or know a link to any exampels
Thanks
Jul 20 '05 #1
4 25707

<ti**********@h otmail.com> schreef in bericht
news:5b******** *************** ***@posting.goo gle.com...
I have a time field in an application. I am looking for some kind of
pop up function that lets me insert a time.
So its like a calendar pop up but you can choose a valid time instead
of a date

Has anybody here made such a function or know a link to any exampels
Thanks


What about 2 (or 3) selects for hour and minutes (and seconds).
As opposed to a calendar, which changes by the month, the clock is the
same every day.
(Unless Dr J has another opinion on this subject, ofcourse :-)

Fred
Jul 20 '05 #2
http://www.softcomplex.com/products/...dar/demo1.html

Note the examples in rows 3 and 4.
Jul 20 '05 #3
JRS: In article <bk************ @ID-108377.news.uni-berlin.de>, seen in
news:comp.lang. javascript, Fred Serry <fr************ ***@planet.nl>
posted at Fri, 19 Sep 2003 15:02:31 :-

<ti**********@ hotmail.com> schreef in bericht
news:5b******* *************** ****@posting.go ogle.com...
I have a time field in an application. I am looking for some kind of
pop up function that lets me insert a time.
So its like a calendar pop up but you can choose a valid time instead
of a date

Has anybody here made such a function or know a link to any exampels
Thanks


What about 2 (or 3) selects for hour and minutes (and seconds).
As opposed to a calendar, which changes by the month, the clock is the
same every day.
(Unless Dr J has another opinion on this subject, ofcourse :-)


One can do it exactly like a date picker, except that there is no need
to vary the length of any drop. To keep the Americans happy, and to
annoy almost everyone else, one could add a.m. & p.m. - rather
carefully, when interpreting.

With drops of length 60 for seconds and minutes, the method seems slower
than just typing in something like 12:34:56. Try my YWD picker, which
has a drop of 53 for next year.

One could make something like my Date Picker, but with three arrays of
buttons; that would be fast, for expert mouse-wielders; but a waste of
download time. See <URL:http://www.merlyn.demo n.co.uk/js-date6.htm>
Date and Time Choosers, and <URL:http://www.merlyn.demon.co.uk/js-
date4.htm> on validation.

--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.
Jul 20 '05 #4
<ti**********@h otmail.com> wrote in message
news:5b******** *************** ***@posting.goo gle.com...
I have a time field in an application. I am looking for some kind of
pop up function that lets me insert a time.
So its like a calendar pop up but you can choose a valid time instead
of a date

Has anybody here made such a function or know a link to any exampels


I once needed a data and time input in a SAS/AF application that may have
some relevance here, for the date I used a standard calendar, and for the
time I used a dialog that required 2 clicks to input the time, one to set
hour, by clicking on fields labeled 0-23, with am/pm option.

Hour:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
AM PM

The 0-23 was actually a single field and I got the mouse location to
determine the hour, the am/pm was a radio set (SAS choice group)
The minutes I handled by creating a single 60 column text widget with 2
rows of numbers in a monospace font that looked like (sorry if they don't
line up here):

Minute:
0----|----1----|----2----|----3----|----4----|----5----|----0
012345678901234 567890123456789 012345678901234 567890123456789

where each minute was represented by a vertical set of numbers/symbols
for 0-5 and 0-9. A click on this field was intercepted, and the horizontal
location retrieved to determine the minute value.

Other fields displayed the selected time, and offset from "now". A
custom prompt string was passed to the routine, and final OK button press
was optionally required.

I haven't done this in JavaScript so I don't know how the logistics of
determining click offest on a fixed font, and popup non-modality would
actually come together, but the SAS implementation worked very well, and was
one of my most heavily used utility subs for database input.

zin
-- http://www.zintel.com
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14549
by: john | last post by:
Can someone give me a url of a time picker? I found a lot of date/time picker but no timepicker alone. I just want a time picker. Thanks.
5
7107
by: Adrian Parker | last post by:
Hi. I have a date time picker in my program which uses ADO to read from an Access database. It works perfectly, unless the database is empty (no records) when opened. When you try to open an empty database, the date time picker returns error 545. Any attempts to progmatically add new records after the empty database has been opened returns, or to use the DTP and set a new date for those added records, "Field not updateable, Bound...
3
5246
by: TD | last post by:
This code doesn't work. Every posting I can find suggests that it should. If TypeOf controlname Is DTPicker then do something here End If I am using the Date Time Picker control and wish to use TypeOf to determine if the controlname is indeed a Date Time Picker control.
7
10782
by: XmlAdoNewbie | last post by:
Hi All, I am wondering if it is possible to allow nulls or empty strings when it comes to the datetimepicker control. I have an app with a few datetimepickers on it and there are some instances when i don't want a date to show at all but the datetimepickers always have at least todays date in it so when i go to press the save button on my app there is always a date stored in the retrieved field. Is there a way to say "hey i don't want a...
2
3956
by: Need Helps | last post by:
The example given in msdn.com on how to create a Date Time Picker involves using the CreateWindowEx function. However, I created a dialog box using the graphical interface, and then used the graphical interface to add a Date Time Picker control to it. The only problem is, I don't know how to do anything with the Date Time Picker, like access the date selected within the control. All I have is the ID, which in my code is IDC_DATETIMEPICKER1. ...
4
2673
by: Michael Turner | last post by:
Hi Guys I have two DateTime pickers one shows the Date and the other the time, this is a requirement of the solution. The problem I have is that when the time is saved to the sql database into a datetime field it uses the default date which is a problem when I try to sort, what I wanted to know is there a way for me to set the date in the time picker to the date in the date picker? Any help greatly appreciated.
4
4880
by: Michel Posseth [MCP] | last post by:
I have a problem with the date time picker validate event wich i believe is a bug How to reproduce : throw on a form a date time picker control and a textbox control select the validating event of the control and add this code
0
2846
by: fredloh | last post by:
i have a tab control on my form. i then have several microsoft date and time picker control on the tab control. when i select a date on any of the date and time picker control, the result of the control's value is always 12:00:00 am instead of the date i selected even though the date displays correctly on the date and time picker control. the controls are unbound. why is this? i also have another identical form where the date and...
1
4466
by: Sabbuser | last post by:
Hey Guys please help me out!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I have placed a Date & Time Picker Control on a form in Windows 2000, When our Organization has upgraded all the PC's with Windows XP. Now i can't find the Date&Time Picker Control on the Form, it is showing a blank box. I have visited the Microsoft website, there i found that "Date&Time Picker Control has been eliminated in Windows XP".
0
9593
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9169
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7633
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5668
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.