By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,731 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,731 IT Pros & Developers. It's quick & easy.

calculate no. of days dynamically

P: 1
suppose there is two text box first one is from date and second one is to date.when we input the value in given text boxes then dynamically calculate the difference date i mean calculate total no. of days automatically in .php page.Please reply me asap....
thanks in advance...
Jan 19 '12 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,639
you might find the strtotime() function useful.

if you have PHP 5.3+ you can use the DateTime classes (esp. DateTime::diff())
Jan 19 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.