Need Date/Time Picker with specific functions

Web Technologies Web Development 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating
_x000D_ _x000D_ I've looked around, and I do see previous questions where people ask about Date/Time pickers; unfortunately none of those threads matched my specific needs. I see a lot of people recommending Any+Time as well, but it seems a little "heavy" and I'm looking for lightweight. Basically, I have the need for a date/time picker for "events". The event-search picker here (http://jqueryui.com/demos/datepicker/#event-search) is very nice, but it doesn't handle time. My form is built on jQuery, so I'm okay with using that. Must be able to select both date and time End time form should be hidden until the start time is selected. After the start time is selected, end time should automatically be set for 6 hours later Should not be able to select an end time that takes place before the start time Should be able to handle timezones, and default to the user's current timezone Should be able to send out a UTC timestamp (I will store in a hidden field; ex: 1291004863) Your recommendations are appreciated... I dont know much about Javascript.

Posted on 16 Aug 2022, this text provides information on Web Development related to Web Technologies. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago
_x000D_ I would try extending the jQuery UI datepicker with the modifications made on the following page: http://addyosmani.com/blog/the-missing-date-time-selector-for-jquery-ui/ The jQuery UI event search example code would only need the new parameters added as to make it work. Hope that helps! Edit: Example code for datepicker range (using code from link above): -HTML-

-js- $(function() { $('.datetime').datepicker({ duration: '', showTime: true, constrainInput: false }); }); Here's a link to see in action: http://bit.ly/hZTR84

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Important Web Technologies Links