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
2
votes
2 answers
How to improve my current code to get correct result
I have some events. event are show in application every week depend on inserted day.like
event one > Friday
event two > sat
event three > sun
so event one show in application every Friday 2 am to 2 am
I am confused how to manage and 2 am to 2 am. I…

Grathand72
- 53
- 6
2
votes
2 answers
How get Week day name in custom format using vb.net/C#
Using following code get the current Day Name of a computer
Dim CompCurrCult = Globalization.CultureInfo.CurrentCulture
Dim dayOfWeek As DayOfWeek = CompCurrCult .Calendar.GetDayOfWeek(Date.Today)
Result : dayofWeek = Monday
So my question is how…

Thomas Gabriel
- 35
- 1
- 5
2
votes
1 answer
Matching the same date based on the number working days left in the month from different months
I'm trying to target a date from the previous month that matches today. However, the target date needs to be based on the same number of business days left in the month. For example, if today is 6-JUN-14 then I need a query that gives me 7-MAY-14…

RyTone
- 21
- 2
2
votes
3 answers
C++ Get ISO8601 day number from week number and week day
I have:
A year number (can be any year)
A month number (from Jan to Dec)
A week number (1st, 2nd, 3rd, 4th, last)
A week day (Sun, Mon, Tue, Wed, Thu, Fri, Sat)
I need to get a day number [from 1 to ~31] - "YYYY-MM-DD" (ISO8601).
Is there any way…

Gediminas
- 1,830
- 3
- 27
- 47
2
votes
3 answers
How to Display the Month, Day of the Month, and Current Time Plus Twelve Hours?
I am looking for help with my PHP code:
$date = date('m/d/Y h:i:s a', time());
echo "The current server timezone is: " . $date;
$jd=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y"));
echo(jddayofweek($jd,1));
Currently this outputs:
The…

Kelsey
- 913
- 3
- 19
- 41
2
votes
1 answer
Android viewpager loading wrong data
I have a ViewPager that represents weeks and its infinite.
The problem is when I swipe left or right the right data loads and a second later reloads data from the week that it started with.
PageModelWeek.java
public class PageModelWeek
{
private…

AndroidCoder
- 302
- 1
- 3
- 13
2
votes
3 answers
Mysql Converting date to days of week
I have the following query which gives me the visit_date for each client:
select visit_date from visit
The output of the above query is the timestamp when the entry was inserted into the Database , it will appear as follows :…

H Dindi
- 1,484
- 6
- 39
- 68
2
votes
2 answers
View in Oracle to display rows from last weekday
I need to make a view in Oracle that will display all rows from last weekday.
So for Tuesday it should be like this cause I need all entries from Monday:
select * from table_1 where to_char(Mydate,'yyyy-mm-dd') = …

Imageree
- 4,683
- 5
- 26
- 35
2
votes
1 answer
Show weekdays in html table using jQuery loop
Currently I'm showing various weather parameters in a table and I also want the current day and the six following days to be in the first column.
I started to create the weekdays like this:
// Make variables for every weekday
var d = new Date();
var…

Markus Olsson
- 23
- 1
- 5
2
votes
1 answer
MySql SELECT WHERE Date is greater than past 10 weeks (starting at prev Sunday)
The problem I'm running into is when running this query it starts the week interval from the current date (minus 7 days from current date). I want to do all previous 10 weeks (Sun-Mon). So if my current date is on a Monday, Tuesday, or Wednesday,…

ToddN
- 2,901
- 14
- 56
- 96
2
votes
1 answer
php convert weekday to date
function dayDate($day) {
$dayArr = array(
0 => 'MONDAY',
1 => 'TUESDAY',
2 => 'WEDNESDAY',
3 => 'THURSDAY',
4 => 'FRIDAY',
5 => 'SATURDAY',
6 => 'SUNDAY'
…

Zain Baloch
- 410
- 5
- 9
1
vote
2 answers
Ordering days of the week (consecutive days)
I have a vector of some days of the week which I need to be in order, I have a feeling there might be a package that deal with days but could well be wrong.
mydays
"Friday" "Monday" "Saturday" "Sunday"
I want these to become. Also worth noting…

Joe
- 795
- 1
- 11
1
vote
1 answer
Excel: how to return data of the last weekday?
| Column A | Column B |
| 14/4 | 1 |
| 15/4 | 100 |
| 16/4 | 70 |
| 17/4 | 80 |
What is the formula I could use to extract the data (column B) of previous weekday please?
So if I open the file on monday (17…

Mini Muc
- 33
- 2
1
vote
3 answers
Convert Weekday to Date in R
I have data like this:
sample_data <- c("Sun 11.30am", "Tues 01.00pm", "Mon 10.00am", "Sun 01.30am", "Thurs, 02.30pm")
I want to return the year/month/day/time based on the weekdays, assuming the weekday is the next occurrence of the day (desired…

Neal Barsch
- 2,810
- 2
- 13
- 39
1
vote
1 answer
DAX Help : Filter on Full Weeks Only
I have an odd request to report data in PowerBI on days in the previous month that are part of a full Sunday-Saturday week.
For example, February 2023 would only show data from the 5th to the 25th:
(https://i.stack.imgur.com/qldSK.png)
Days falling…

mstan
- 13
- 3