Questions tagged [days]

A day is a unit of time which is equal to an interval of 24 hours. It may be used for example for measuring the length of a period (see also period tag). For questions about dates or day of week rather consider tags like date or dayofweek.

554 questions
-1
votes
1 answer

(Help Needed) Time between two dates w/o Dateti

I have to calculate the time between two dates in days in Python, but without the datetime module. I managed to parse a date without datetime: def date(error): global sdate if error: print(sdate," isn't a valable date ! ") sdate…
Blax
  • 500
  • 3
  • 7
  • 18
-1
votes
2 answers

15 days before today in SQL Server

I am trying to find the list of specific job # from load date in our database with the specific condition and I have to use inner join as well. i want to have last 15 days worth of Job # in my store procedure. How do I set up the LoadDate that…
Binit Patel
  • 21
  • 2
  • 7
-1
votes
3 answers

Php add 5 working days to current date excluding weekends (sat-sun) and excluding (multiple) holidays

For delivery of our webshop, we need to calculate 5 working days from the current date in php. Our working days are from monday to friday and we have several closing days (holidays) which cannot be included either. I've found this script, but this…
WBeke
  • 33
  • 2
  • 2
  • 4
-1
votes
1 answer

Matching days and hours

I want to Group Days and Hours from this: Mon : array(9:00AM - 11:00AM, 1:00pm-6pm) Tue : array(8:00AM - 11:00AM,12:00pm-6pm) Wed : array(9:00AM - 11:00AM, 1:00pm-6pm) Thu : array(9:00AM - 11:00AM,1:00pm-6pm) Fri : array(9:00AM -…
-1
votes
2 answers

JAVA: Get next weekday

My Problem: I wanted a String in which at the start of the Program, the Name of tomorrows Weekday is saved. Basically, if I start the Program on Monday, it calls a Method and the String has the Value "Tuesday". Is there an easy way to do it ?
Freund
  • 27
  • 1
  • 6
-1
votes
1 answer

EXCEL: check column for value and count number of days against most recent date entry in other column?

I have an excel spread sheet with two columns: A B 01/04/2015 Riddor 27/03/2015 Riddor 02/04/2014 Other Text In my cell i am trying to create a function which will check column b to see if the word 'Riddor' exists and…
James Gayle
  • 157
  • 1
  • 1
  • 12
-1
votes
1 answer

Android Studio count how many days since application was last opened

This is just for a personal project, I'm creating a little basic journal with some other things. I have no idea where to begin I will be honest, but when my application launches I want it to display in a TextView how many days it has been since the…
user10231313
  • 9
  • 1
  • 3
-1
votes
2 answers

How do you input initialize and add days to dates? (java)

I am trying to build a program that libraries can use. The user inputs the date they loaned the book, and it calculates that date + 5 days (when the book is due). Then checks if the current date is before or after the due date. Then says if it is…
-1
votes
1 answer

Group by business day of month

Data generated only on business days. df['Day_of_Month'] = df.index.day Date........................................ Day_of_Month 2014-11-26 1049.25 1054.75 26 2014-11-28 1041.00 1051.50 …
Rayl54292
  • 95
  • 2
  • 8
-1
votes
1 answer

How to get how many days in current month in android

I want to know the name of current date time and year and count how many days in current month
Ye Htet Nyi
  • 21
  • 2
  • 6
-1
votes
1 answer

One hour difference, but only for some dates

Why between those dates I get 5,9.... and if I use another year I get 6 ???? It only happens with March and 2008... why is there an hour difference ???
Gmi182
  • 41
  • 6
-1
votes
1 answer

Calculate number of days for last 6months from today in python

In python how to find the total number of days for the last 6 months ? For example today is 7 November(7 days in this month), and in october there are 31 days and so on until the last 6 months, and now i need to find the total for all the days in a…
Shiva Krishna Bavandla
  • 25,548
  • 75
  • 193
  • 313
-1
votes
2 answers

Mysql get count of rows for each day

My Current query is: SELECT DISTINCT DATE(vote_timestamp) AS Date, COUNT(*) AS TotalVotes FROM `votes` WHERE vote_target_id='83031' GROUP BY DATE(vote_timestamp) ORDER BY DATE(vote_timestamp) DESC LIMIT 30 (line breaks separated for…
Adam M-W
  • 3,509
  • 9
  • 49
  • 69
-1
votes
1 answer

how to obtain days between two dates in R

I have a data set like below: money date1 date2 "300" "10/30 " " 11/1" "400" "10/28 " " 10/31" "360" "10/28 " " 10/30" "440" "10/25 " " 10/28" "620" "10/21 " " 10/28" I want to extract the days between two dates such as 10/30,10/31,and…
John Smith
  • 110
  • 2
  • 11
-2
votes
1 answer

Java getting number of days between two dates

I am trying to calculate the number of days between two dates. Even though I found many similar questions, I just cannot come up with a solution. Date lastpickup = (Date) section_userdata.get("lastpickup"); Date today = new Date(); Instant…
prmln
  • 19
  • 1