Best way for date/time range picker and database interaction
Page 1 of 1
Stige




Posts: 3544
Location: Finland
PostPosted: Wed, 15th Apr 2015 14:28    Post subject: Best way for date/time range picker and database interaction
Would like some input on how this would be best handled:

I need to pick a date and a start time along with date and end time for a project and then write this to SQL in a format that works for both SQL/PHP/whatever is used to make this and so it is sortable in the database.

I have read some jQuery stuff but I have never done jQuery before so looking for tips/tricks/ideas on how I should handle all the database interaction and possible jQuery stuff.

Ideas are welcome.
Back to top
garus
VIP Member



Posts: 34200

PostPosted: Wed, 15th Apr 2015 14:43    Post subject:
snip


Last edited by garus on Tue, 27th Aug 2024 21:40; edited 1 time in total
Back to top
dingo_d
VIP Member



Posts: 14555

PostPosted: Wed, 15th Apr 2015 14:55    Post subject:
+1 to that. You can easily store the picked date in your DOM and then pull it out in php and convert with strtotime and do with it what ever you like Smile


"Quantum mechanics is actually, contrary to it's reputation, unbeliveably simple, once you take the physics out."
Scott Aaronson
chiv wrote:
thats true you know. newton didnt discover gravity. the apple told him about it, and then he killed it. the core was never found.

Back to top
Stige




Posts: 3544
Location: Finland
PostPosted: Wed, 15th Apr 2015 15:41    Post subject:
Something like this?

http://jquery.hohli.com/

Or better ways to handle it? This is some new stuff I have never even touched.
Back to top
dingo_d
VIP Member



Posts: 14555

PostPosted: Thu, 16th Apr 2015 06:31    Post subject:
You are using some kind of CMS for your site, or just a simple HTML/PHP one?


"Quantum mechanics is actually, contrary to it's reputation, unbeliveably simple, once you take the physics out."
Scott Aaronson
chiv wrote:
thats true you know. newton didnt discover gravity. the apple told him about it, and then he killed it. the core was never found.

Back to top
Stige




Posts: 3544
Location: Finland
PostPosted: Thu, 16th Apr 2015 08:39    Post subject:
dingo_d wrote:
You are using some kind of CMS for your site, or just a simple HTML/PHP one?


Just a simple HTML/PHP made by hand, so anything goes really.

I heard of this Bootstrap thingy only after the project was a long way underway already :l
Back to top
Stige




Posts: 3544
Location: Finland
PostPosted: Fri, 17th Apr 2015 13:53    Post subject:
garus wrote:
For example: http://amsul.ca/pickadate.js/date/

just include jQuery.js, pickadate.js and copy paste the example from the page above Smile


Thanks, this worked wonders after I took some time to look at the files included.
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group