date Questions
14
Solved
I am using this bootstrap-datepicker for my datepicker. I'd like the datepicker to choose "today" for start day or default day.
I cannot figure out how to set "today" automatically, so I did an in...
Wanderjahr asked 15/3, 2013 at 1:59
10
Solved
I am trying to add a year to todays date. I am working in a system that does not allow you to use standard JavaScript.
For instance, to get todays date I have to use:
javascript:now();
I have ...
Schlep asked 11/10, 2015 at 21:44
9
Solved
3
Solved
Basically, I am using the following code to parse string as LocalDateTime, which works fine most of the time.
DateTimeFormatter dtformatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSS");
H...
12
Solved
If I have a date coming into a function, how can I tell if it's a weekend day?
Sniperscope asked 23/8, 2010 at 21:20
5
Solved
I've been set the 'challenge' of converting seconds to format as the Days,Minutes and Seconds.
For example: 31600000 = 365 days, 46 minutes, 40 seconds.
using namespace std;
const int hours_in_day ...
49
Solved
How can I calculate an age in years, given a birth date of format YYYYMMDD? Is it possible using the Date() function?
I am looking for a better solution than the one I am using now:
var dob =...
Weanling asked 30/10, 2010 at 18:7
3
Solved
Hi I've been searching for a while now and I cant seem to find the answer to this.
I have to code a function in javascript that takes in a numbers of days in parameter and then transforms it into ...
Bipolar asked 12/6, 2017 at 15:11
6
Solved
This is a noob question:
How to parse a date in format "YYYYmmdd" without external libraries ? If the input string is not in this format I would like to get invalid Date (or undefined if it will b...
Haunt asked 17/5, 2012 at 15:17
20
Solved
I need to update a few hundred static HTML pages that have the copyright date hard coded in the footer. I want to replace it with some JavaScript that will automatically update each year.
Currentl...
Rhodie asked 30/12, 2010 at 12:29
7
Solved
Hi I need to remain only with the day of each date:
df<-data.frame(x=c("2014-07-24 00:00:00",
"2014-07-24 00:00:00", "2014-07-11", "2014-07-11" ,"2014-07-16" ,"2014-07-14"))
as.Date(df$x,forma...
6
Solved
I'm trying to get a 'date' type that corresponds to the first day of the current month. Basically one of my tables stores a date, but I want it to always be the first of the month, so I'm trying to...
Inamorata asked 5/8, 2013 at 23:8
34
Solved
var range = getDates(new Date(), new Date().addDays(7));
I'd like "range" to be an array of date objects, one for each day between the two dates.
The trick is that it should handle month and yea...
Livvyy asked 10/12, 2010 at 21:46
3
In Python3, I can loop over a range of dates like this
import datetime
dt0 = datetime.datetime(2017, 1, 1, 0, 0, 0)
dt1 = datetime.datetime(2017, 1, 5, 0, 0, 0)
dt = dt0
while dt <= dt1:
prin...
31
Solved
How can I get the last day of the month in PHP?
Given:
$a_date = "2009-11-23"
I want 2009-11-30; and given
$a_date = "2009-12-23"
I want 2009-12-31.
45
Solved
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package s...
43
Solved
For example, given two dates in input boxes:
<input id="first" value="1/1/2000"/>
<input id="second" value="1/1/2001"/>
<script>
alert(da...
Crafton asked 12/2, 2009 at 19:50
9
Solved
I have a bunch of objects, each of which has a timestamp, that I want to group by date, into a JSON object. The ultimate goal is something like this:
myObject = {
"06/07/2012" : [
{
"timestamp...
Jamille asked 7/8, 2012 at 14:8
20
Solved
I need to round times down to the nearest quarter hour in PHP. The times are being pulled from a MySQL database from a datetime column and formatted like 2010-03-18 10:50:00.
Example:
10:50 need...
17
Solved
I have to use the Java Date class for this problem (it interfaces with something out of my control).
How do I get the start and end date of a year and then iterate through each date?
12
Solved
i have written this code to convert the current system date and time to some other timezone. I am not getting any error but i am not getting my output as expected. Like if i execute my program at a...
Deface asked 24/2, 2012 at 10:42
7
I'm trying to get the current date without the time and store it in a variable, within JavaScript. It needs to be without time as I'm converting it to an epoch date, with which I will use to measur...
Choctaw asked 22/8, 2014 at 10:55
7
Solved
Is it possible to determine if a date is a Saturday or Sunday using JavaScript?
Do you have the code for this?
Giavani asked 25/7, 2009 at 4:42
27
Solved
A="2002-20-10"
B="2003-22-11"
How to find the difference in days between two dates?
10
Solved
In PHP, you can easily convert an English textual datetime description into a proper date with strtotime().
Is there anything similar in Javascript?
Apograph asked 29/10, 2010 at 0:40
© 2022 - 2024 — McMap. All rights reserved.