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
votes
1 answer
How to get weekday in Swift regardless of the locale settings?
In my iOS app user can choose on which day to have certain action active and I am saving each selection as a raw value of OptionSet. This all works great.
But I need a way to map current day to the selected options. How can I get some kind of…

Filip
- 1,824
- 4
- 18
- 37
-1
votes
1 answer
Day of week in R
I have a date in R and it's formatted as follows:
2018-08-31 01:00:00
Is there any way in R to add another column with the day of the week associated with the date? My dataset is very large.

Thais Rangel
- 1
- 2
-1
votes
4 answers
Java Date and time
Hey guys im trying to find some info regarding java and the calendar class. I need to write an if statement that says if it is a weekend i.e sat or sunday then do this else do this
Cheers
Thanks for the help however i don't think im implementing it…

Simon
- 121
- 1
- 2
- 8
-1
votes
1 answer
PHP Date "l" +1 day
Thanks for the help, but I have found my answer here: PHP, Get tomorrows date from date
My question is probably pretty simple, but I can't find an answer anywhere for it. I am looking to print if something is open or not. As you can see here in the…

Coderax
- 15
- 5
-1
votes
4 answers
MySQL - Average ignoring Null and based on weekday
I´m trying to do some analysis in the following data
WeekDay Date Count
5 06/09/2018 20
6 07/09/2018 Null
7 08/09/2018 19
1 09/09/2018 16
2 10/09/2018 17
3 11/09/2018 24
4 12/09/2018 25
5 13/09/2018 24 …

DanDanWill
- 3
- 1
-1
votes
1 answer
How to compare dataframe dates with the values of row and column keeping weekdays and holidays apart
I have a dataframe that represents this:
I need to create another column 'Mark' and here is why it is complicated.
For the value 'C' execution day is Sunday 8/11/2018. The next day would be Monday 9/11/2018.
So I need to calculate the weekdays…

T0167
- 175
- 2
- 2
- 11
-1
votes
1 answer
Weekday in Haskel wtih gregorian calender formula
Thx for the first Help. Now I changed this. but still a bog error. Is my whole Code wrong or just the part with the weekdays function.
How can i call a function inside another function?
data Wochentag = Mo | Di | Mi | Do | Fr | Sa | So
deriving…

M. Moz
- 1
- 2
-1
votes
1 answer
Is there a better way to calculate a new date given weekday hours subtracted from a date?
Given a date and a number of hours, I want to calculate a new date if I subtract the hours using only weekday hours (no weekend hours (no Saturday or Sunday hours)).
I have the following two functions to calculate a date when subtracting weekday…

Ashwin Nirmul
- 61
- 1
- 8
-1
votes
1 answer
SQL DATEADD(weekday, 1, date) does not seem to work?
Here is my query:
SELECT ID AS 'securityid'
, date
, DATEADD(DW, 1, adate) AS 'lagged_date_v2'
, DATEADD(DAY, 1, adate) AS 'lagged_date_v1'
, aclose AS 'previous_close'
FROM mytable
WHERE adate BETWEEN '20170101 09:00'…

Aaron
- 7
- 1
- 4
-1
votes
2 answers
Java Calendar get Xº day of the week of month
I'm need to do a method that returns the position of actual day in the next month.
for today (20/12/2016)
I need to call this method whit today date
The return given must to be (17/01/2016)
This method must return the third Tuesday of the next…

gFontaniva
- 897
- 11
- 27
-1
votes
1 answer
Convert 6 digit number into weekday (python)
I am currently trying to convert a 6 digit number into a day of the week. For example, I want "150102" to be converted as the weekday Friday "15" is the year 2015", "01" is the month, and "02" is the day
Note I want to do this without importing any…

CSCdummie
- 3
- 2
-1
votes
1 answer
SQL Date - functions
>=DateAdd("ww",-9,Date()-Weekday(Date(),0)+1))
I have the above function in some SQL coding that I have inherited and am struggling to work out what it is actually calculating can anyone help?

T Steele
- 1
- 1
-1
votes
3 answers
pandas: Create a 'Weekday' DataFrame column by converting date (mm/dd/yy) to weekday
I'm attempting to convert a date to a weekday - a least the weekday number, 0 for Monday, 1 for Tuesday etc. The date is an object data type.
When I try to find information/help to convert date to weekday, or adding a new dataframe column called…

Theant6118
- 79
- 1
- 10
-1
votes
1 answer
setbackground color for week day in Android app
I am developing a week data application in Android. I would like to set the background color for weekday (example: friday). I am using the listview in xml. Thanks a lot for your suggestions,
private void addDateView(LinearLayout layout, String…

Ankam
- 25
- 6
-1
votes
1 answer
Excel VBA code to return weekday name from a date then autofilters for userdefined weekdays and copies autofiltered data to new sheet
I spent last night looking for an answer to my question but i didn't find anything specific to my ask.
I have a huge sheet that contains lots of data. In Column A, I have the Date and time. I would like to have a VBA code that does few actions.
1)…

exlover
- 69
- 1
- 2
- 8