Questions tagged [dayofweek]
Usually a function that returns day of the week when a certain date object is passed.
682
questions
0
votes
1
answer
30
views
Changing the order of days
I am unable to present my days of the week in a chronological order, and while visualizing the data, it doesn't looks right.
I tried using ordered statement, but it shows me an error, please help
This ...
0
votes
0
answers
34
views
How to get Day of Week
I know you can use dayofweek function to get day of week. For instance
(Get-Date).DayOfWeek works
But I am looking to get the day of a specific date so i have
$lastquarter="select convert (char,(...
0
votes
2
answers
39
views
How do I group by day of week in SQLAlchemy and sum a certain column for each day of week?
I have a created_at column which stores the datetime.datetime object.
And I have a column that stores an integer for each day called as collected.
What I want is to group this table by day of week (...
1
vote
1
answer
28
views
Business Day Counts btw 2 date series (for countries which have a "friday - saturday" weekend )
I try to calculate the working day counts between 2 date columns for each row. My data is consisted of different countries all over the world. -I found the working day counts for European countries ...
-1
votes
0
answers
17
views
my weekday sequence is not in order in my output diagram [duplicate]
my weekdays do not come in a sequence when in my output diagram. they are starting from Friday ,Monday, Saturday , Sunday , Thursday ,Tuesday , Wednesday. in my csv file they are written in a ...
2
votes
1
answer
26
views
Creating a function to fill out a calendar in javascript?
So I want to create a function to get the weekdays in a specified month of year, I can already do this but when I get up to the part where I actually list them on the calendar it seems to start from 0 ...
-1
votes
1
answer
26
views
Difference between today,week start
How to get the difference between datetime.datetime.utcnow(), and the start of week?
I want start of week of
"date=17,month=12,year=2022,hour=x,minute=y,second=z" to be:
"date=12,month=...
0
votes
3
answers
71
views
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, ...
0
votes
0
answers
29
views
How to filter by dayOfWeek in mongodb node.js
I'm new at this, I need to get all the persons from the db that matches the day of the week of the attribute createdAt (a Date) and a day of the week obtained through a parameter in the request. My ...
0
votes
1
answer
42
views
Order the results by the day of the week
Right now I'm doing an SQL HW assingment and having issues with figuring out on how to order the data from Monday to Sunday in the DAY column that was created.
The task that's required:
Display the ...
0
votes
0
answers
19
views
How to call ICU APIs to give ISO date time format instead of default locale based values
Like to get ISO date-time value for option day of week.
https://unicode-org.github.io/icu/userguide/format_parse/datetime/
e local day of week
example: if Monday is 1st day, Tuesday is 2nd ) e or ee
...
-2
votes
1
answer
45
views
Auto-detect the start date and end date to store the day of the week, start time and end time in the day block
I have a problem auto-detecting the start date and end date to store the day of the week, start time, and end time in DayBlock objects. Why do I need to auto-detect? Because startDate and endDate are ...
0
votes
0
answers
18
views
How to find out weeks for a month by SQL code?
How to find out weeks for a month by SQL code?
How to find out weeks for a month by SQL code?
-1
votes
1
answer
21
views
How can you get the currentday of the week REACT NATIVE?
I saw a code as reference where it showed the output of the currentTime, currentDay, the date, month, year in react native using extend class Component
export default class NowShowing extends ...
0
votes
1
answer
27
views
How can I have the exact date for a certain week of the year? [duplicate]
I have the following data:
week = [202001, 202002, 202003, ..., 202052]
Where the composition of the variable is [year - 4 digits] + [week - 2 digits] (so, the first row means it's the first week of ...
-2
votes
1
answer
95
views
Why getDayOfWeek does not return day number of week?
I have written code to print the day number of week, from 1 - Monday ...
I found this:
java.time.DayOfWeek num = LocalDate.of(year, month, day).getDayOfWeek();
System.out.println(num);
Example output:...
0
votes
1
answer
105
views
How can I get the values of corresponding day of the week and last week and future conditionals in SQL Server?
I have a column of "Date", and I would like to obtain this conditionals that I put in a picture to easy imagination:
For example: today was 30/09/2022, take the values of the week complete ...
0
votes
0
answers
23
views
Alternation of functions Python
I am writing a small project for study. I want to ask for advice.
There are two functions that should change every 7 days. The beginning of the report on September 5, the end of June 30.
For example, ...
1
vote
1
answer
25
views
Schedule library starts 20-46 Seconds after the time I set, Not sure why
Trying to run a program every day at exactly 11:59:40 AM when I use the schedule library it will start 20+ Seconds after the time I set, Not sure why. Is there another library I can use? Also tried ...
0
votes
0
answers
48
views
Excel Formulas for Nth or Last Specified Weekday of Month
If someone has a better solutions please let me know, but this is what I came up with to calculate the first, last, and Nth specified weekdays for a given month/year.
Cell B3: dropdown values for ...
0
votes
1
answer
32
views
Calculating day of week from month, year and day and adding it as a column in my dataset
I have dataset as below:
I tried to calculate the day of the week using year, month and day, but got error as follows:
Can someone please help me out to code this?
0
votes
1
answer
91
views
Optimize ways to get the first date of week dynamically in pandas without using lambda function
I have a dataframe df_purchase. It has the column BusinessTime in datetime format. My purpose is to get the date from each record in the BusinessTime column and find the first date of the week ...
0
votes
1
answer
60
views
Show only full weeks - SQL
how could I display only full weeks from my dataset? So if my week starts on Monday 1st of August to the 14th, that would be considered a full week. Whereas the one starting on the 8th is considered ...
0
votes
1
answer
93
views
Change Spark day timestamp from name to number
I'm trying to get the day of the week in int format from it saying Mon, Tues, Wed, etc.
I'm using this code right now:
from pyspark.sql.functions import date_format
df_ex1 = df.withColumn("day&...
1
vote
1
answer
88
views
Week start and end dates within a month in Spark 2.4
Requirement: find out week start date and end date, but only within the given month date.
Input df:
df = spark.createDataFrame([('1', '2022-07-01'), ('2', '2022-07-30'), ('3', '2022-07-31')], ["...
0
votes
1
answer
27
views
convert a week number and year to a date object in Javascript
I am very new to web development and I am currently working on a dashboard my data comes from a MySql database. I would like to convert a week number and year to an actual date object in the frontend ...
0
votes
2
answers
446
views
Pinescript - Days of the week
I can't get the Days of the week to display on Midnight for NY time (utc-4) its only working for UTC, I set it
isMon() =>
dayofweek(time('D',"","America/New_York")) == dayofweek....
0
votes
1
answer
147
views
python check user input is day of the week
I am attempting to define a function that asks the user which days of the week they are available. I need their input to be saved into a list for future use. I want to ensure they are entering the day ...
1
vote
2
answers
138
views
What's the most reliable way to get the week day from a utc Date
This is how I'm getting the date's week day
const date = new Date('2022-06-25T'+hour+':00:00.951Z')
const day1 = date.toLocaleString('en-US', { weekday: 'short' })
And this is how I'm constructing ...
0
votes
0
answers
68
views
dayofweek strategy issue on tradingview
i'm looking to backtest the buy tuesday strategy if monday close lower than open; however, the strategy result doesn't show up. Would someone know how to fix it? Thanks so much!
isMon() => ...
1
vote
3
answers
108
views
How to show a card after a specified interval in app
I want to show the card on the main page once a week in my app.
Can anyone help me how can I do that?
I use Future.delayed in the init state and set duration "7 days" for it.
But I think it ...
2
votes
1
answer
277
views
Repeat blocks of columns and rows N times dynamically in Google Sheets
I am currently working on a scheduling spreadsheet in Google Sheets and am looking for a way to repeat a block of cells with dynamic values a fixed number of times. I tried using REPT and SPLIT, but ...
1
vote
1
answer
22
views
Error occuring only on Sunday for general simple weektable
Im working on a general table that highlights the current day of the week.
It worked on all days except for Sunday, today. Its now broken and it returns the following error:
Apparently the code is ...
0
votes
2
answers
96
views
Highlighting Todays Work Day of the Week in an HTML Table using only CSS/Javascript/Jquery
I would like my computer to automatically highlight todays day of the week in a table row.
The table has all the weekdays in a separate row, and has a fixed number of seven rows, starting with the ...
1
vote
1
answer
2k
views
How to convert from Moment to Luxon for two letter day of week format?
I am converting a typescript app to use Luxon instead of Moment for datetime processing and am not sure how to use Luxon's built-in features (or configurable options) to return the day of week as two ...
-1
votes
1
answer
594
views
How to extract day of week from timestamp
I am trying to extract the day of the week from a timestamp in SQL Server.
I am specifically looking for the SQL Server equivalent syntax to EXTRACT.
I want to count how many fields are in each day of ...
1
vote
0
answers
24
views
retrieve tasks that are scheduled in coming week
I'm trying to retrieve all the tasks that are scheduled for the coming week.
I might be doing it totally wrong but this is what I am trying so far,
var dateArray = stringDate.split('/');
const ...
0
votes
2
answers
223
views
How to convert day of week from Sunday first to Monday first in c++?
I have a function which returns the day of week as an integer, Sunday = 0, Monday = 1, etc. to 6. I want to convert this to Monday = 0, ..., Sunday = 6. I can not think of better way than the one ...
0
votes
0
answers
107
views
Replacing dates that fall on weekends to next business day in dataframe
I have a dataframe with bunch of dates in them, I would like to check each entry if it is a weekday or weekend, if it is a weekend i would like to increase the date to the next weekday. What is the ...
0
votes
0
answers
71
views
Create a calendar - Leave empty space when the month doesn't start from Sunday (Angular)
I'm using Angular and I'm trying to display a list of days within a list of months. But I have a problem when the day of the month it doesn't start from sunday. For example: if the month starts from ...
0
votes
1
answer
49
views
How to make a new column for days of the week
I am working with a FitBit daily activity dataset within BigQuery. I have a date column (stored as a date type), and I'm trying to make a new column that will reflect the days of the week (Saturday, ...
1
vote
2
answers
284
views
How to construct date from (year, weekOfYear, dayOfWeek) in Snowflake?
I have a situation where using Snowflake, I need to construct a date from these parts (year, weekOfYear, dayOfWeek). ie (2022, 13th week, 3 for Weds) would equate to today's date 2022-03-30.
While ...
0
votes
1
answer
30
views
pandas - day of the week and week numbers - progress integer to select values
I have this dataframe:
rng = pd.date_range(start='2018-01-01', end='2018-01-14')
rnd_values = np.random.rand(len(rng))+3
dfc = pd.DataFrame({'time':rng.to_list(),'value':rnd_values})
dfc = dfc....
2
votes
2
answers
131
views
Convert Number to DayOfWeek List
I've got an odd issue I'm running into and hoping someone here can help. I'm querying against a Scheduled Task on a Windows computer and getting the days when it is slated to execute. However, where I ...
1
vote
5
answers
218
views
Is there a function in Python that returns a number when it is given the day of the week as an input (string)?
The string "Monday" when passed to the function would return 0, and the string "Tuesday" would return 1 and so on and so forth...
-1
votes
5
answers
257
views
How to get next Friday 13th since the given LocalDate [closed]
I need to get next Friday 13th since the given date using LocalDate.
How it could be implemented?
0
votes
1
answer
320
views
Day of the Week to Return 'weekend' or 'weekday'
I'm brand new to R... I have a column in a data frame where I extracted the days of the week from a date-time column. I would like to add another column to show either "weekend" or "...
0
votes
0
answers
12
views
how do i trigger a button or an id based on the day of the week?
I would like the day of the week to trigger a button.
The buttons i created already display pictures and information.
So i would like a button to automatically be triggered depending on the day of the ...
0
votes
0
answers
248
views
C# condition to do something every N weeks or every N months
I'm looking for an efficient way to do a process (Process1) every N times of time period, as for example every 2 weeks or every 6 months, being the integer value (N) defined by the user who can enter ...
0
votes
1
answer
88
views
How can I sort array days of week by specific day in c#?
sort array days by specific day in c#
I have 3 days {sunday, tuesday, friday}
I want to sort my array with monday and my array become { tuesday, friday , sunday}