A day of the week. Used for questions related to programming problems that involve `weekday`: calculation, triggering an event, discovery of a specific day etc
Questions tagged [weekday]
462 questions
1
vote
2 answers
I am trying to filter an excel data set to just show the data for the current week in pandas
Currently this is how my dataset looks
Num Name Type Status Current % Next Milestone\nDate
1 sam - Open 54% 2023-01-16 00:00:00
2 Dave - Open 54% 2023-01-20 00:00:00
3 Jake - Open 45% 2023-01-13…

Jaaz Douglas
- 21
- 3
1
vote
3 answers
How to Sort List of Week Day names in flutter in ascending order
I have a list of Week Day names in random order, how to sort it in ascending order e.g. Monday, Tuesday, Wednesday …
List
[Friday, Monday, Sunday, Wednesday]
Desired List
[Monday, Wednesday, Friday, Sunday]
I have tried
list.sort((a, b) =>…

Muzammil Hassan
- 336
- 2
- 10
1
vote
1 answer
Sort a dataframe in R on a column containing days of the week
I am using R for data analysis. I have a data frame that contains data on the steps walked per day by a number of users. My data looks something like this…

Jammy
- 13
- 2
1
vote
4 answers
How to return all weekdays in a range of dates, sorted in ascending order
from datetime import datetime
from datetime import timedelta
#this is the start day
day = input()
#this is number of days input
num=int(input())
#this is the start date of the shipment
temp = input()
#this is the date format the string into a day…

John Alderton
- 19
- 3
1
vote
3 answers
Get all dates from first date of week in Array of objects in JavaScript
Need help on solving this, should be a small task, but could not figured it out.
Problem: data is an array of objects with the first date of the week in x and a value for that week in y.
need a solution/function that will return all dates in that…

Richo
- 33
- 5
1
vote
2 answers
String input of weekdays in German to Localdate
I have a string input of weekdays in German and need to get the next Localdate after today which corresponds to the given weekday string. If for example the input is Montag (Monday) I need the output as Localdate of 2022-05-16 which is the next…

bbKing
- 179
- 1
- 8
1
vote
1 answer
Calculate the difference between two weekdays in multiple combinations by name(start/end)
This question is part of this question R - Reclassifying days in relation to another variable
The core and most important part for me is this:
Suppose we have to columns with day names:
df <- structure(list(StartDay = c("Friday", "Friday", "Friday",…

TarJae
- 72,363
- 6
- 19
- 66
1
vote
1 answer
transforming a weekday integer to a string - swift
I currently have an array of weekdays that represent integers which I will trigger a notification on that weekday
let weekdays:[Int] = [1,4,7]
in dateComponents, weekdays represent a number so for example - integer 1 represents Sunday and integer…

user17928877
- 13
- 3
1
vote
1 answer
how to get week date range (Monday-Sunday) for a date following in between that week(Monday-Sunday)
I want date range of Monday to Sunday for a particular date which i am giving.
For example:-
if i give "2021-11-22" (Monday) (%Y-%m-%d) then i should get date range of "2021-11-22" to "2021-11-28".
Another Case :-
if i give any date between…

Chandresh Chahar
- 153
- 1
- 6
1
vote
4 answers
How to find the days of the week in JavaScript
I am trying to find the weekdays from today to Sunday. Since today is Monday I want to display the dates from Monday till Sunday, but tomorrow, I want my programme works from Tuesday to Sunday.
dateSets() {
let firstDayOfWeek = "";
…

magic bean
- 787
- 12
- 39
1
vote
1 answer
pjweekday constants for weekday exceptions for multiple days
I've been trying to import & export workday exceptions of MS-Project from/to Excel. Daily, monthly or yearly exceptions are no problem, but weekly exceptions do cause me some trouble:
By recording, I understand that for each combination of several…

Chris
- 13
- 3
1
vote
1 answer
How to get dateTime from week number and year in dart
How to get dateTime from week number and year in dart
Example,
year = 2021
week = 35
return
startDate = 29-08-2021
endDate = 04-09-2021

Azhar
- 11
- 1
1
vote
1 answer
How to convert numbers to day of the week name?
My code for reference:
$data1 = date('d-m-Y');
$array = array();
$i = 0;
while($i < 20){
$datagenerica = substr($data1,stripos($data1,'-'));
$datagenerica = $i.$datagenerica;
$data = date('w',strtotime($datagenerica));
$array[] =…

Emanoel José
- 125
- 1
- 6
1
vote
1 answer
Dart Lang: Strange result adding 7 days. Sometimes it doesn't compute well
Given a date, and let's say it is Monday, I hope that if I add 7 days I will get a new Monday.
That is so sometimes, in some case it adds a little less and I get a Sunday.
I can keep adding 7 days and I get Sundays until I get a new Monday back.
How…

Santi
- 491
- 6
- 14
1
vote
1 answer
How to get weekday name from a date in informix sql?
I have a date column in a table which I have to return weekday name from it while I join it with another table.
Right now I get it as an int WEEKDAY(a.vila_date) weekdag
SELECT years, software, vsnr, WEEKDAY(a.vila_date) weekdag, a.vilatime
FROM …

itro
- 7,006
- 27
- 78
- 121