close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PHP script to convert jquery datepicker input to unix timestamp

Thread began 12/04/2010 6:00 am by biesheuvel378713 | Last modified 7/10/2011 9:30 am by GrahamJ16 | 8877 views | 2 replies |

biesheuvel378713

PHP script to convert jquery datepicker input to unix timestamp

It was snowing and freezing so i made a litle php script that converts the input of the jquery date picker into a unix timestamp just like the php funtion strtotime.

It expects to parameters:

1) The format of the string like (mm-dd-yy) just like the webassist dialog
2) The result value of the datepicker

Now its easy to convert that value into anything you want from within your php application, if you find it usefull you can download the attached file...

Greetz,

Attached Files
jdp_strtotime.zip
Sign in to reply to this post

danny405167

Thanks...

but any chance you can provide instructions on how to use your file? I already have a page that contains 3 date pickers. I would like for each date picker to show the date on the screen as mm/dd/yyyy but to be inserted as yyyy-mm-dd. I currently have it on both the screen and the insert as yyyy-mm-dd.

Sign in to reply to this post

GrahamJ16

Very Useful

Thanks very much, this saved me some time converting datepicker UK formated dates to use in a search query

Sign in to reply to this post

elviscristiano445370

how pass the date from datepicker to php

could you give us an usage example?
thanks

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...