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.
Questions tagged [days]
554 questions
-3
votes
3 answers
How to get 'days' like Monday, Tuesday etc on a given input 'date' in java
I'm working on a task where I need to provide specific day like Wednesday, Thursday etc on given input date like
Input:
6 7 2017
Output:
Wednesday
Any help would be appreciated thank you.
I have tried using java.util.Calendar. I am able to get…

Naveen Akula
- 27
- 5
-3
votes
3 answers
write a program to prompt number of days to add to current date and print new date as well as today's date
print out today's date. this should be in the form MM/DD/YYYY. Months should start for 1 instead of 0. prompt to read number of days to be added to current date and print the new date.
please anyone help me out
import java.util.calendar;
…

Mohammad Bobat
- 1
- 1
-3
votes
3 answers
DateFormat conversion in Android
Let us suppose we have a date show as.
2015-08-03 12:00:00
How would I convert that to a day's name like Tuesday ? I don't want things like 03 Tue etc. Just the full days name. I looked around but I am bit confused on that.

Theo
- 3,099
- 12
- 53
- 94
-3
votes
3 answers
Print out the date after a number of days from June 1st,2013
how would i make a program that prints out the date after a number of days from June 1st,2013?
Any help is appreciated
Example: if 45 is entered it should output July 16,2013
Im using ReadyToPrgram btw if this matters

user3183193
- 1
- 2
-4
votes
1 answer
I want to make a Java program that takes date as input and generates another date based on number of dates I will add
I want to make a java program that takes dates as input and generate another date based on the number of days I will add.
eg:
input date 23/4/2018
number of days: 10
output date: 3/5/2018

Rahul yadav
- 1
- 2
-4
votes
1 answer
SQL: Calculate the number of days from overlapping date range
I want to count the number of days for each ID but the days are overlapping.
ID STARTDATE ENDDATE
1 19/12/2012 29/01/2013
1 30/05/2013 14/07/2013
1 15/02/2013 12/03/2013
1 13/03/2013 18/03/2013
1 19/03/2013 26/03/2013
1 …

user3352629
- 9
- 1
- 3
-4
votes
2 answers
Operations on date PHP
I need to make some operations on date.
From the DB script is reading a date and frequency of actions (ex. 21 days), and should calculate when will be the next action since actual date. I've tried to do this in some ways (it's hard to me to write it…

kacper
- 370
- 2
- 6
- 13
-5
votes
1 answer
could anyone identify the days python?
ask the user enter the date in the format YYYY-MM-DD
1.what age of user in days;
2.what day of week (in German language) was the birth.
import datetime
b = int(input('Enter your birthdate: '))
bb = datetime(b, '%Y-%m-%d')
a =…

gfffh
- 3
- 3
-5
votes
2 answers
How Do i Print last 10 days using php?
I want to Print last 10 days from the current day. I want to do this by using php. Please can any one help me.

Syed Rehaman
- 39
- 1
- 4
-5
votes
2 answers
how to write number of days in c#
how can I write program in c# that show the number of the day
for example :
I ask a user to type a day and he write Monday and I want to show him 2

Maasoud Asadi
- 61
- 4
- 8
-5
votes
1 answer
Get total number of each day between two date in php
If I give 2 dates, I need results as follow -
SUNDAY = 3 TIMES
MONDAY = 3 TIMES
TUESDAY = 4 TIMES
WEDNESDAY = 4 TIMES
THURSDAY = 4 TIMES
FRIDAY = 4 TIMES
SATRUDAY = 4 TIMES
I am confused if this can be done via any function in mysql or I have to…

Obhaso
- 449
- 1
- 4
- 14
-7
votes
2 answers
C# 2D arrays calendar day in the month
i just need some guidance on how i can display which dates in the month fall on that day. For example, if user enters 0 for monday and 31 days in that month, it will display all the momdays and which date the mondays correspond to in that month?…

S.Singh
- 1
- 5
-7
votes
1 answer
Turn a datetime into days in python
I want to take in a string that is a date (ex. "2002-3-14") and turn it into total days since January 1st 1 AD (ex. 730,924). How would I do this in python 2.7? Is there a way to convert the datetime to a timedelta?

Droonkid
- 55
- 14
-9
votes
1 answer
How to get day difference between two dates in javascript?
Say I have two dates: 1/24/2020 11:55:00 PM and 1/25/2020 01:00:00 AM. Real difference between them is about 2 hours but the day has changed. I want the difference in days which would be 1.
I have tried https://stackoverflow.com/a/52054494/6288172…

ParmuTownley
- 957
- 2
- 14
- 34