Questions tagged [weekday]

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

462 questions
-1
votes
1 answer

Convert calendar date in Excel to same weekday in future years

I have a spreadsheet I have created from Outlook calendar export for 2014. I need to rollover the StartDate dates in my spreadsheet (B3) to the same day of the week in 2015 (e.g., Monday appointment in 2014 needs to be on Monday in 2015). I've…
Tammy
  • 1
-1
votes
1 answer

Haskell: count an enum (Days of week) by an int

I want to create a function for a calender programm, that does the following: proceed :: Day -> Int -> Day > proceed Mon 9 Wed The function proceed should tell me, what weekday it is in 9 days, if today is Monday. Now I try this: data Day = Mon |…
basti12354
  • 2,490
  • 4
  • 24
  • 43
-1
votes
2 answers

Change Cell color if its contain Date with Day Sunday in Excel

Friends, Just simple question... How can i change cell's color if it contain date of weekend? I am using Microsoft Excel 2011 - With OSx (Mac)
Raj
  • 1,213
  • 2
  • 16
  • 34
-2
votes
2 answers

Easy way to get the weekday in a batch file

I was searching for a good easy answer to getting the day of the week from %date% and saw a lot of answers but none very eloquent.
-2
votes
1 answer

How to Interface for a module in javascript

I am just beginner to javascript. I ought to replace blablabla with a code which output the following There are 7 days in a week. In programming, the index of Sunday tends to be 0. Here is the code const weekday = (function() { const names =…
-2
votes
2 answers

SQL-server 'WEEKDAY' is not a recognized built-in function name

I'm using SQL Server Management Studio v18.9.2 which I downloaded about a month ago (Aug. 2021). I've searched for help here on SO, SQLServerTutorial.net, and w3schools.com, and can't figure out what I'm doing wrong. I'm trying to get three columns…
LNV
  • 41
  • 1
  • 8
-2
votes
1 answer

In Python how can I index the name of the week with the correct min and max?

I know it's probably a stupid question, but I did my research and I didn't find anything that could solve it. I would love it if anybody could help me. I am trying to index the day of the week with the right min() and max() Monday= input('Enter the…
-2
votes
1 answer

Is there an Arduino library that can take in a DD/MM/YYYY date and tell me what day of the week it is?

I am making a Clock and I have got all the hardware figured out and I'm working on the software now. I have the exact date of a particular day, but I want the Arduino to be able to convert that into a day of the week. I have had a look online, but I…
Elliot
  • 27
  • 4
-2
votes
2 answers

Python: Check if today is first weekday of the month

I wondered how to check if the current day is the first weekday of the month in Python and could not find any solution on the web. So I thought I post mine, in case anyone needs to solve this too.
stack_lech
  • 990
  • 2
  • 10
  • 28
-2
votes
1 answer

How to get the day of the week in DateTime?

How to get the day of the week in DateTime ? I can’t find the way to get the day of the week from a DateTime. It’s can be number or string, both are ok. $today = new DateTime("today"); echo $ today->//whatever to get Friday, Monday or 5, 0 How to…
Angel
  • 55
  • 1
  • 10
-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

How to do get list of calendar dates in array from two calendar dates in java

I am trying to figure out find out list of calendar dates from two specific dates. But I am getting only within a same year not fix two dates. What I have done: private ArrayList weekendList = null; public void…
No_Name_Code
  • 299
  • 10
  • 20
-2
votes
2 answers

How to find "Days since Sunday" with the JavaScript Date() object

The tm_wday (e.g., weekday) property on the C++ time structure struct tm represents days since Sunday, an integer from 0-6. This is often used in daylight savings calculations; e.g., "The first Sunday in…
kmiklas
  • 13,085
  • 22
  • 67
  • 103
-2
votes
2 answers

Allow to run from Sunday to Friday?

The following PHP code that allows a process to only run between certain times. How would this be done in GoLang? $curdate = date('Y-m-d'); $mydate=getdate(strtotime($curdate)); if ( $mydate['wday'] === 0 ) { if ( date('H') < 15 ) { exit; }; //…
-2
votes
3 answers

Get date of next nearest weekday from today

I need to get date of next nearest weekday from today.( For ex : I will give three random weekdays like Sunday, Monday, Saturday. From this list I need to get next nearest weekday from today ( Thursday ) output is should be Saturday. Here after I…
Gugan Abu
  • 546
  • 1
  • 4
  • 17
1 2 3
30
31