Skip to Content
author's profile photo Former Member
Former Member

Number of week in the year for the given date

In powerbuilder 11.2 , How can find the number of weeks in the year for the given two date '20-01-2016' to 20-11-2016';

Please any help would appreciate

Pol

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2016 at 05:31 PM

    Hi Pol,

    How about DaysAfter(date1,date2) / 7?

    Neil

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2016 at 05:56 PM

    What is your definition for week?

    If we take ' Wednesday 06-01-2016' to Wednesday 20-11-2016';

    This are

    a) 14 days

    b) and it spans from week 1 to week 3,

    c) but it covers only one complete week (week 2)

    So is it

    a) 2 weeks

    b) 3 weeks

    c) 1 week ?

    and in case of b and c: when does your week start? Sunday or Monday? That differs depending where you live.

    KR Ludwin

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.