Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Script to determine days between dates

$
0
0

I'm totally new to JavaScript.  I'm attempting to do a calculation field with a custom calculation script.  I've tried to piece together something with script I've scavenged from multiple forums, but have been completely unsuccessful.  I have 4 form fields.  2 date fields, a number field (formatted for currency), and the calculation field.  The calculation I'm attempting is ((365 - (days between the 2 date fields)) divided by 365) times (currency field).  Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>