Calculating dates and time for total - InfoPath Dev
in

InfoPath Dev

Calculating dates and time for total

Last post 05-24-2010 07:56 AM by Alec Pojidaev. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-20-2010 11:47 AM

    • Donnie
    • Not Ranked
    • Joined on 05-20-2010
    • Posts 1

    Calculating dates and time for total

    Hello,

    I am hoping someone can point me in the right direction. I have an infopath form that I use with MOSS 2007, its a leave request form. I have 4 different fields for dates and times...

    field 1. start date (date picker) - datatype (Date)

    field 2. start time (drop down list in 15 minute increments) - datatype (Time)

    field 3. end date (date picker) - datatype (Date)

    field 4. end time (drop down list in 15 minute increments) - datatype (Time)

    I have another field that I want to display the total number of days requested, including partial days (example, 1.5 days)

    can anyone assist in pointing me in the right direction?

     thanks,

    Donnie

  • 05-21-2010 01:30 PM In reply to

    Re: Calculating dates and time for total

    Hi Donnie,

    Though it is possible via code (or qRules) to calculate a date difference, there are a few issues to keep in mind:

    1. What about weekends? Do Saturday and Sunday get excluded?

    2. The same can be asked about holidays, which might be different in different states or countries.

    If you were to ignore weekend and Holidays, then yes, it should be possible via managed code or qRules' DateDiff to calculate the difference in days and difference in hours.

    What are your thoughts on the two issues I've mentioned?

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.