in reply to I want to know the current week number of the current month

Week of year is already fuzzy because depending on regional conventions, Excell for instance provides multiple definitions for different standards.

But I'm puzzled about how do you define week of months?

edit

If you don't know what I mean then better do a subtraction

$week_current - $week_first_day_of_month + 1

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^2: I want to know the current week number of the current month
by Muskovitz (Scribe) on Oct 12, 2017 at 12:54 UTC
    Yes! exactly Week of Months.
    Uhmm ... to be clear. I am currently making a Billing System using Perl and i need also to put Weekly totals for example: As for 1st Week of October: $2,100, As for 2nd Week of October: $3,211 ... etc ...
      Thanks for ignoring my question (again)

      Simplified:

      • Which week did 1. of October (Sunday) and 2. belong to?
      • What if the 1. was a Wednesday?
      • Are you aware that most months don't start on Mondays?
      update
      • Are you aware that most months have more than 28 (= 7*4) days?

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

        Ok sir. So here it is.

        But I'm puzzled about how do you define week of months?
        Answer: What i am trying to tell here is i need to get the "Week Number of Months" like October Week 1, October Week 2 ... so that i can calculate the weekly total of bills.

        Which week did 1. of October (Sunday) and 2. belong to?
        Answer: I can't clearly understand this sir. I'm sorry.

        What if the 1. was a Wednesday?
        Answer: I don't any have answer for this one yet.

        Are you aware that most months don't start on Mondays?
        Answer: yes sir! I am very aware of that.

        Are you aware that most months have more than 28 (= 7*4) days?
        Answer: yes sir! I am also very aware of that :(

        I already did the Today's Total and Monthly Total and now i am stuck in Weekly Total.
        Yes sir! that is why i posted here to seek for help.
        my goal is to sum up all the weekly total of bills. So that is why i need to know if it is the 1st/2nd/3rd week of the current month.
        If you have any tips/tricks on how to this kind of stuff sir. Please i need it.

        Anyways thanks for your replies. I really really appreciate it.