Groups
Groups
Sign in
Groups
Groups
Adobe LiveCycle Developers
Conversations
About
Send feedback
Help
Calculate Days between two dates
308 views
Skip to first unread message
Affinit
unread,
Apr 22, 2009, 10:05:52 PM
4/22/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Adobe LiveCycle Developers
HI does anyone know the javascript to calculate the days between two
dates ?
i have dateIn and DateOut and need the javascript.
i have done in formCalc but i now have other calculations that i need
and i can't get javascript to read teh formcalc results.
basically i have a car hire form.
when you select a car it will input a cost price into the cost field.
however depending on the number of days you hire it will show a
different cost.
so i need the number of days between two date fields in order to run
my if else statements.
can anyone help ?
LiveCycle Lifeline
unread,
Apr 23, 2009, 10:08:45 AM
4/23/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Adobe LiveCycle Developers
Hi
Take a look at my blog post
http://eslifeline.wordpress.com/2008/09/26/date-manipulation/
Duane Nickull
unread,
Apr 23, 2009, 11:48:00 AM
4/23/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to live...@googlegroups.com
Can you not subtract the date object from the second one? I know this works in ActionScript. Do you need to round precision points?
Duane
Reply all
Reply to author
Forward
0 new messages