Questions tagged [week-number]

Based on Gregorain calendar, every week of a year has a number from 1 to 52, 53 or 54. Use this tag for instance if you want to calculate the weeknumber from a certain date or vice versa. You also might include the date tag. This tag is independent of programming language.

603 questions
-2
votes
2 answers

How to get first day of particular week(week 2 in november) and last day of particular week(week 4 in november) using javascript

I need to implement a functionality in javascript which takes from week and to week as inputs i.e it takes week number of current month (ex : 1,2,3,4,5,6) and get the start date of the week and end day of other week in current month and current…
-2
votes
1 answer

Week Number in Processing?

I have been trying to get the week number in Processing but didn't find how to do it. How can I get the week number in Processing?
yaron
  • 1
  • 1
  • 2
-2
votes
1 answer

Get last week and next week number from week number

I would like to get last week and next week number from week number. How to get the next week number if it's December or the last week if it's January ? I use ISO week numbers. Desired results:
maria.l
  • 1
  • 1
-2
votes
1 answer

Show week content only SQL

i have a database with a Row named date and a type of Timestamp. Now i have a problem with only viewing content where it is added in the current week. So that you don't see content of last week. How can i do this in a query?, btw i am using MySQL
-2
votes
1 answer

Count id's or whatever on weeks in mysql

I have a mysql table with a datetime field. Now, for statistics, I need to count how many entries are done in the weeks, 1st week, 2nd week, ... Weeks are from monday to sunday. For now, my idea is to calculate every monday in php and do a query.…
-2
votes
1 answer

how i create a formula of payment using weeknum formula

i need to calculate paymant of this people in the same week like you see in this spreadsheet https://docs.google.com/spreadsheets/d/1fHEtOFxZeRjJ07duCxxhUwUL_1G3BUrvKRMYjT9_OmM/edit#gid=91744412 I used WEEKNUM formula to extract the number of…
jack1986
  • 3
  • 1
  • 3
-2
votes
1 answer

Retrieve the week number from a date

I am using the following method to retrieve the week. public int GetWeek(DateTime date) { var day = (int)CultureInfo.CurrentCulture.Calendar.GetDayOfWeek(date); return CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(date.AddDays(4 - (day…
user1120418
  • 261
  • 3
  • 8
  • 18
-2
votes
1 answer

Find Start Date / End Date of Week of THIS Year/ LAST

I am stumbling with SQL …see if you can help with 5 and 6 Business Need I have myDate I want SQL to give me week number for myDate I want SQL to return week start date of this year for myDate I want SQL to return week end date of this year for…
-2
votes
1 answer

which dates given week number, bash

In Bourne shell, I need to know which dates belong to the same week. For example, week 16 in 2013 starts on April 22nd and ends on April 28th. Using the "date" command I can get the week number for a certain date but I need to go the other way…
user1641496
  • 457
  • 1
  • 8
  • 18
-3
votes
2 answers

Get start date and end date from week/month/year

I need to extract the start date and end date from a given year and week and return them as LocalDate: Example: year / month / week : 2022 / 12 / 49 -> date_begin 05/12/2022 - date_end 11/12/2022 this mean the week 49 of the year 2022 starts from…
Jsef bch
  • 71
  • 1
  • 7
-3
votes
2 answers

How to get daterange by having week number of the month and the year in Java?

Assuming we have data "September2021W5", in which W5 is the week number of the month September2021. Ofcourse I can write custom method to split and get year, month and week-number of the month seperately. How can we get daterange i.e start date and…
kmj
  • 41
  • 2
  • 7
-3
votes
2 answers

How to get number of weeks by month in year?

I want a function that will return an array of week numbers for current month in current year. For example if the current month is August, 2015 it will return [32, 33, 34, 35, 36]. If month is February, 2015 it will return [6, 7, 8, 9]. Is there a…
mkz
  • 2,302
  • 2
  • 30
  • 43
-3
votes
3 answers

Get date from monday depending on week number

I can`t figure out the code to get the date from monday depending on the week number of this year. could someone help me with this code? thanks.
-3
votes
2 answers

Calculating Number of week with a condition

I am planing to make a scheduling application. According to the business logic the first day of the week starts from the moment you finish your vacation..For Example: If my vacation ended years and I would start my work from today..It would be…
Fahad
  • 99
  • 8
-4
votes
1 answer

I want to find the week number of a date in C++

I'm trying to find out the week number of a date in C++. I'm taking my date from the console as a string and dividing it into the date, month, and year. This is my code. Please help me to find out the problem. #include using namespace…
1 2 3
40
41