Clarity

  • 1.  Calculate Weekdays between two days

    Posted Jan 07, 2016 06:39 AM

    Hello All, I'm a Beginner in Gel-Script here I got an Idea .
    Suppose If I have a File having dates like this
    2016-01-20
    2016-01-30
    2016-02-12

     

    The Result File should be like this

    3

    4

     

    Which means Saturdays and Sundays between two Dates printed in other File .
    I'm trying out but im getting Lot many Ideas in Java as GEL-SCRIPT is XML im unable to apply them.

     

    Could you please help me out . This Would be a Practice for you As well.

     

    Thanks All.



  • 2.  Re: Calculate Weekdays between two days

    Posted Jan 07, 2016 08:28 AM

    Hi - [ incidentally, I'm not sure that posting a number of very similar Questions all at the same time is the best way to get a response from the people in this community! ]

     

    But;

     

    There are some answers to various ways to handle date-differences in SQL and GEL on these boards, have a look around. A good place that you could start would be be reading through this thread to understand a bit more ; DateDiff in work days   (there is some clever GEL code in there (from Gene) that will do a date diff)

     

    --

     

    JayaSantoshKumar wrote:

     

    This Would be a Practice for you As well.

    .

    Hmmm thanks for that...