Questions tagged [dayofweek]

Usually a function that returns day of the week when a certain date object is passed.

Get day of day of the week in:

691 questions
-1
votes
2 answers

Java date-manipulation

I'm trying to get a date with a Month number, week of month number and a day of week number I thought this will be easy and did this: LocalDate nextbookingDate = LocalDate.now().plusYears(1); nextBookingDate =…
Leon
  • 5
  • 5
-1
votes
2 answers

How to parse DayOfWeek range

As part of an opening times page, I want to parse a DayOfWeek range as (Monday to Friday) rather than creating a String for every day of the working week. Is there a way that this can be done so that the default locale automatically changes the…
wbk727
  • 8,017
  • 12
  • 61
  • 125
-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
1 answer

How to get name of the day from dosamigos datepicker in yii2?

This is my coding for the datepicker. i want to get the name of the day when user select the date from the datepicker. Please i'm new to this and i need to complete this for my final year project. Thank you in advance. field($model,…
-1
votes
2 answers

How to get second Wednesday of the month

I need to know if current_date is the second Wednesday of the month with PostgreSQL. Can anyone help me?
Ema
  • 13
  • 7
-1
votes
1 answer

Mysql list dates between date range but only on specific days of the week

I am using the code below to get a list of dates between a date range. SELECT ADDDATE('2012-02-10', INTERVAL @i:=@i+1 DAY) AS DAY FROM ( SELECT a.a FROM (SELECT 0 AS a UNION ALL SELECT 1 UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION…
ubay25
  • 23
  • 7
-1
votes
1 answer

MYSQL INSERT and JOIN return single result, should return multiple results

Table XX Day-A Day-1 Day-B Day-2 Cat Dog ---------- ---------- ---------- ---------- ----- ----- 2018/01/12 NULL NULL NULL Y N NULL NULL 2018/02/02 NULL N Y NULL NULL …
-1
votes
2 answers

vb.net - is it possible to output the first character from a string for monday and then the next character for tuesday (and so on)?

i have a string containing special characters ('★☆☽☾☁') and i would like to have ★ printed out for monday, ☆ for tuesday, ☽ for wednesday, ☾ for thursday, and ☁ for friday. i apologize since i am very new to vb.net so i have only very basic…
rx_
  • 1
-1
votes
3 answers

How to finding the number of days between two days of the week?

How to find the number of days between two days not dates using PHP? I know how to get the number of days between two dates, but my input values are day names (date-ignorant). Inputs/Outputs: Wednesday and Saturday returns 3 Sunday and Wednesday…
predactor
  • 772
  • 4
  • 11
  • 29
-1
votes
2 answers

Take values from field for first and last day of week

I need to extract the values from a field from the first and last day of week. Basically I need to show a status of units at the beginning and at the end of the week. Week is determined from monday to sunday, the table I need to extract this from is…
nomury
  • 1
-1
votes
4 answers

How do I extract the day of week from mm/dd/yyy in a python dataframe

I have a non-index column in a python dataframe with a date like 02/03/2017. I would like to extract the day of the week and make it a separate column.
kozowh
  • 93
  • 2
  • 10
-1
votes
3 answers

Group Sum Per Day of Week and Put in Array

I have a table which stores labor data. One of the columns is the amount of hours worked (rthours) on a specific project, another column is the date (labor_date). I need to grab the sum of all hours worked for each day of the current week and put…
-1
votes
1 answer

Is it possible to give enum dayofweek value

I have an enum value that represent a range of week days (e.g. Sunday until Friday) that I present to user in a friendly name. I tried to give it the value (SunTilTHur = DayOfWeek.Sunday + DayOfWeek.Monday + DayOfWeek.Tuesday) but I'm getting the…
Assaf Our
  • 611
  • 3
  • 9
  • 25
-1
votes
1 answer

Getting the date of a specific day of week when the week is passed in as a variable

I'm trying to figure out what a date(m-d-Y) would be for a specific week. The date that I'm trying to calculate would be passed in as the day string ('monday', 'tuesday', etc...) and the week would be a PHP DatePeriod object. I will be passing in a…
Lagnor
  • 3
  • 3
-1
votes
2 answers

Suppose 11.05.2015 is the date provided by user then system should display output as weekday is monday

I tried these variations, but didn't succeed: print calendar.monthcalendar(z,y) print datetime.date(y,x,z).weekday() print datetime.date(y,x,z).strftime('%A')
Nikhil Kadam
  • 65
  • 1
  • 1
  • 8