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
0
votes
2 answers

Need a list of week days with their number on iphone os

I'm working on a project that needs to have a list of weekdays. I could get their locale names using the NSDateFormatter without a problem, but I was hoping to have an integer weekday also to save on the database and do some work. Where can i get…
Homer1980ar
  • 277
  • 6
  • 15
0
votes
1 answer

How does weekly reminders work?

Is there an algorithm for weekly reminders ? For example, I set a reminder for Thursday & I check the "weekly" option. The Reminder is supposed to alert every Thursday then,but how is this done? I thought about an idea, but I guess it's very…
Sana Joseph
  • 1,948
  • 7
  • 37
  • 58
0
votes
1 answer

T-SQL DateMath: for any given date, find occurrence of the dayname in month, e.g. 3rd Saturday

I am trying to develop a scheduling application that needs to represent rules such as "this event occurs on the 2nd and 4th Wednesdays of the month" or "this event happens on odd-numbered Saturdays of the month (i.e. the 1st, 3rd, and 5th…
Tim
  • 8,669
  • 31
  • 105
  • 183
0
votes
2 answers

Mapping a fixed limited array in C# using Entity Framework

I am trying to map a property to the database. However it is a list/array for which I know the fixed length. So I would like those items to be mapped into the same database table without needing to be mapped into a different database table. public…
Tich
  • 85
  • 1
  • 6
0
votes
3 answers

How to find which day of the week it is java

I want to find the day of the week in java without the use of date and other methods that do it on theirselves.I can find the daydifference between 2 dates but I cant understand how I can find which day of the week that specific date is.
0
votes
3 answers

Need Function to Get First day and last day of current week

I have two labels First day and Last day in which I want to update it on button click. I need Function to Get First day and last day of current date so that I can display it on click of next and previous button. Here is what I have so…
Hitesh S
  • 460
  • 1
  • 5
  • 20
0
votes
2 answers

How to extract day-of-the-week from datetime format from XML document

I am trying to extract the day in my XSLT stylesheet from the datetime format of XML file. I am using XSLT 1.0 and XPATH not Python, that's my limitation. Here is the one example of my code on XML document:
nirmalgyanwali
  • 624
  • 1
  • 6
  • 14
0
votes
3 answers

vb.net - How to get the day number from a weekday name

Long story short: I need the inverted function of WeekdayName(), in the following terms: You provide a week day name (e.g. Sunday) You get the correspondent week day number (that depends which is the first week day as returned in WeekdayName, e.g.,…
Sebastian
  • 4,770
  • 4
  • 42
  • 43
0
votes
3 answers

Determinining the date of a particular day of week

Java Q: On any given day, I want to determine the date on which (say) last Friday fell. Example: If I run my program today (ie. Wednesday, 05th Sep 12), I should get the result as "Last Friday was on 31st Aug 12". If I run it on Saturday, 08th Sep…
user1639485
  • 808
  • 3
  • 14
  • 26
0
votes
3 answers

Java weekend calculator API / Library

Lets say I have 2 dates in milliseconds or java.sql.Timestamp: 1342162320 <-> Fri Jul 13 2012 09:52:00 GMT+0300 (FLE Daylight Time) 1343162320 <-> Tue Jul 24 2012 23:38:40 GMT+0300 (FLE Daylight Time) Lets say I provide these 2 dates, and I…
Jaanus
  • 16,161
  • 49
  • 147
  • 202
0
votes
1 answer

Can you sort DayOfWeek Enumeration

I am trying to figure out if the DayOfWeek Enumeration list can be sorted by using the integer value (ie Sunday = 0). Ultimately I want to take the DayOfWeek Enumeration list and population a dropdownlist with the days of the week from Sunday -…
mattgcon
  • 4,768
  • 19
  • 69
  • 117
-1
votes
2 answers

How do I check if a date in format "yyyymmdd" is a weekday or not?

My program accepts date in the format of "yyyymmdd", I don't know how to check if it's a weekday or not. I've seen ppl using $(date +%u) -gt 5 or "$(date +%a)" in Sat|Sun echo "weekend" in other threads, but that ${date} is like Tue Nov 22 14:16:35…
Shang Wang
  • 24,909
  • 20
  • 73
  • 94
-1
votes
0 answers

why is the day of week "E" in date format? (Origin of Date Format)

In general, I wonder why many programming languages use "E" as the date format for the day of the week. Y : Year M : Month D : Day H : Hour m : min s : sec but, E : day of week.. why...? I'm curious about the origin of the date format. Especially…
-1
votes
2 answers

ISO-8601 numeric representation of the day of the week ("N") in PHP using the date() function always returns 3

Trying to get the ISO-8601 numeric representation of the day of the week ("N") in PHP using the date() function; however, it keeps returning "3" no matter what day I use with mktime().
random21
  • 579
  • 1
  • 5
  • 15
-1
votes
1 answer

SPLIT Week between months

Requirement is to split weeks between Months i.e. TECHNICAL_WEEK. populate tech week as Monday date but If month within the same week then populate 1st day of month and remaining days in week with e the 1st day of month. the Next week should be…