+ 4

How to find difference between two dates taken by user by a html form?

set a datepicker for entering dates and difference should be displayed in number of days in third text field of html form after submitting form.

22nd Feb 2017, 10:14 AM
$#!^!
$#!^! - avatar
12 Answers
+ 6
@ravi kiran why are you showing special hospitality for me are you always ask your challenger before a challenge that how are you? have a match or something like that
22nd Feb 2017, 3:45 PM
sonali
sonali - avatar
+ 4
you can use date_diff() function @shivi
22nd Feb 2017, 10:40 AM
sonali
sonali - avatar
+ 4
@sona i have used it but there is some error it is working when i enter date manually but while taking input from user its nt wrking as per i want... if u know how to do kindly share the codeâ˜ș
22nd Feb 2017, 10:41 AM
$#!^!
$#!^! - avatar
+ 4
@shivi .. try this link hopefully help you😇 https://forum.jquery.com/topic/jquery-datepicker-difference-between-two-date
22nd Feb 2017, 11:31 AM
sonali
sonali - avatar
+ 4
mention not 😊😊😊@shivi happy coding
22nd Feb 2017, 11:32 AM
sonali
sonali - avatar
+ 3
@shivi this should be done in which language ??in php or javascript
22nd Feb 2017, 10:37 AM
sonali
sonali - avatar
+ 3
php
22nd Feb 2017, 10:38 AM
$#!^!
$#!^! - avatar
+ 2
@sona thanks
22nd Feb 2017, 11:32 AM
$#!^!
$#!^! - avatar
+ 1
lol I think its the minimum respect i give for any of my friends...and am happy that i met you.. its a challenging game so just asked you to do so.. okay anyway it's ur opinion..its up to you And yeah thank you for your words and my journey with you has really been wonderful @sona
22nd Feb 2017, 4:08 PM
Ravi kiran
Ravi kiran - avatar
0
hai sona how are you how about a challenge
22nd Feb 2017, 3:16 PM
Ravi kiran
Ravi kiran - avatar
0
congrats Sona U won the challenge👌
22nd Feb 2017, 5:39 PM
Ravi kiran
Ravi kiran - avatar
0
Sona i want to learn web development which language should i prefer to learn help me please
24th Feb 2017, 3:48 PM
Ravi kiran
Ravi kiran - avatar