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
3 answers
Adding separator to dateTime
I have a vector with a date as character
x <- "2015-02-01 09:05:23"
I want to convert it to a dateTime object
x <- as.POSIXct(strptime(x, "%Y-%m-%d %H:%M:%S"), tz = "GMT")
and then "T" as separator between date and time (see XML Schema) to get the…

feder80
- 1,195
- 3
- 13
- 34
-2
votes
3 answers
convert a string of numbers to a datetime object
I am parsing a .csv file which contains a column of dates in financial datetime format yyyymmdd, I need to remove weekends when writing some of the rows out to a different file.
I know to use datetime.weekdays() and then:
if…

Joe Smart
- 751
- 3
- 10
- 28
-2
votes
1 answer
Week starting in "Friday," php
I need an array (day, day of week and month) in php That itself contains the current week from Friday Until Wednesday of the following week.
Thank you very much for your help
With this script I get the array only the current week (starting Sunday or…
-2
votes
1 answer
How to get all days of week using week number
I am confused a lot, by this thing. Actually I have developed one view pager, which is showing data week wise. I mean first screen is for current week of the year, and its related dates. Then now I swipe the screen I want next number of weeks and…

Pratik Dasa
- 7,439
- 4
- 30
- 44
-2
votes
5 answers
Can anybody make this code shorter using a loop?
Just a short program that figures out what day it will be in an amount of days the user inputs. I have it starting at DAY 6 which is Saturday. Is there a way I can shorter the code using a loop?
import java.util.Scanner;
class Week{
public…

Cakes
- 19
- 1
- 6
-3
votes
2 answers
How to get last Friday's date with Python?
Is there a way to use Python to get last Friday's date and store it in a variable, regardless of which day of the week the program runs?
That is, if I run the program on Monday June 19th 2021 or Thursday June 22nd 2021, it always returns the previus…

JCarNav
- 21
- 1
- 5
-3
votes
1 answer
Hello, i need please that the day selcted automatic on the real day today and also i need that the previous days will be blocked to select
i need please that the day selcted automatic on the real day today and also i need that the previous days will be blocked to select.for example today is Wednesday, so i need that the selected day will be Wednesday and Tuesday, Monday and Sunday will…

emanuel
- 19
- 1
- 6
-3
votes
2 answers
How would I get the amount of weekdays in a month with LocalDate - Java
How would I go about getting the number of weekdays (Monday though Friday) in a month with LocalDate? I've never used java.time before so I don't know all of its workings. I've been looking on this site to no avail along with searching for an…

Kyu Vulpes
- 79
- 11
-3
votes
2 answers
Week of month, month of year,year
I would like to check Week of month, month of year and year but I have a problem with week of month
here is code:
Public Class BMW
Public Shared Function GetWeekNumber() As Integer
Threading.Thread.Sleep(2000)
Dim span As…

Fiínek Cahů
- 67
- 1
- 2
- 11
-4
votes
1 answer
Store multiple day value in single entry in sqlite
i want to store multiple day values like Sunday, Friday etc.. in my database with single entry for recurring alert purpose see my below image
In this above image i check Sunday, Wednesday, Friday so in my database entry should be single with…

Harshal Kalavadiya
- 2,412
- 4
- 38
- 71
-5
votes
1 answer
How to get all weekend between two specific day of month using java8 time API?
I want to get all weekend between two specific day of month (e.g. from 2018-10-26 to 2018-11-27) using java8 time api. How to do that?

ZhaoxuanSu
- 1
- 1
-5
votes
1 answer
How to split Fromdate and Todate based on weekdays(Sat,Sun) using linq c#
I have Fromdate and Todate.I need to split Fromdate&Todate based on weekdays(Sat,Sun) to list
Fromdate-11/03/2016
Todate-31/03/2016
Model:
public class Splitdate
{
public DateTime Fromdate { get; set; }
public DateTime Todate { get; set;…

Mari
- 237
- 1
- 4
- 17