date Questions
3
Solved
How can one convert a serial date number, representing the number of days since epoch (1970), to the corresponding date string? I have seen multiple posts showing how to go from string to date numb...
7
I have two variables called 'startTime' and 'endTime'.
I need to know whether current time falls between startTime and EndTime. How would I do this using JavaScript only?
var startTime = '15:10:10...
Knoxville asked 21/4, 2015 at 23:59
8
Solved
I want to correct source activity based on the difference between reference and measurement date and source half life (measured in years). Say I have
ref_date <- as.Date('06/01/08',format='%d/...
37
Solved
Suppose a user of your website enters a date range.
2009-1-1 to 2009-1-3
You need to send this date to a server for some processing, but the server expects all dates and times to be in UTC.
Now su...
Cristincristina asked 4/6, 2009 at 3:54
5
Solved
How can I create a date object which is less than n number of months from another date object? I am looking for something like DateAdd().
Example:
var objCurrentDate = new Date();
Now using obj...
Logy asked 30/10, 2009 at 6:59
7
Solved
I have 13 digit number and want to create date and time with include milisecond
Example code is like this this is my php script
$mil = 1328910295939;
$seconds = $mil / 1000;
$showdate = date('Y:m...
16
Solved
I'm starting with a date 2010-05-01 and ending with 2010-05-10. How can I iterate through all of those dates in PHP?
4
Solved
I'm trying to pull and format timestamp from my SQLite db. In my reading, it seems that SQLite formatting is extremely limited compared to date formatting conversion available to PHP. I have this q...
6
Solved
I have a Mysql database where i keep dates of the clients orders.
Date is generated by a php function date('Y-m-d'). Two records in my database have values '0000-00-00'. One was created by a client...
6
Solved
Basically I want to have the terminal output a message followed by the date and time, like "Hi, today is -dateandtime-".
So echo can accomplish the first bit, and date can accomplish the last, but...
18
Solved
How to obtain the start time and end time of a day?
code like this is not accurate:
private Date getStartOfDay(Date date) {
Calendar calendar = Calendar.getInstance();
int year = calendar.get(...
6
Solved
I am new with nestjs. How can I set columns that accepts Date format and dateTime format?
Not in both cases, the columns are two differents column, one accept Date and other dateTime.
25
I want to validate the date format on an input using the format mm/dd/yyyy.
I found below codes in one site and then used it but it doesn't work:
function isDate(ExpiryDate) {
var objDate, // d...
Climber asked 30/5, 2011 at 15:11
27
Solved
Is there a cross-platform way to get the current date and time in C++?
Changeling asked 15/6, 2009 at 19:35
35
Solved
I am storing time in a MySQL database as a Unix timestamp and that gets sent to some JavaScript code. How would I get just the time out of it?
For example, in HH/MM/SS format.
Hanzelin asked 11/5, 2009 at 8:23
5
Solved
Attached below is my current code for changing the text color of CupertinoDatePicker:
Container(
decoration:
BoxDecoration(borderRadius: BorderRadius.circular(12)),
height: MediaQuery.of(context...
Ferdinand asked 18/5, 2021 at 4:14
7
How do I extract the month and date from a mySQL date and compare it to another date?
I found this MONTH() but it only gets the month. I looking for month and year.
2
I looked for a while, and was unable to locate a post discussing a similar issue. I am having an issue with date-scaling in ggplot, which I think is related to the way ggplot is handling dates. I a...
7
Solved
Guys I am trying to get correct Indian time and date in PHP
I have tried this code:
$date = date("d/m/Y");
$date1 = date("H:i a");
if(function_exists('date_default_timezone_set'))
{
date_defaul...
5
Solved
I need to run a monthly report on the first Monday of the month and calculate this day with Python. The code I have so far will go into a module in our ETL program and will determine if the date is...
Redwood asked 4/5, 2021 at 3:19
25
Solved
I’m looking for the easiest, cleanest way to add X months to a JavaScript date.
I’d rather not handle the rolling over of the year or have to write my own function.
Is there something built in th...
Ruhnke asked 24/4, 2010 at 21:1
10
I need to create logfiles per month for a range of months.
Therefor I need all [year,month] tuples in a given range
How do you do iterating over dates?
How can this be done if I'd need to iterat...
9
Solved
I'm trying to detect with Moment.js if a given date is between two dates. Since version 2.0.0, Tim added isBefore() and isAfter() for date comparison.
Since there's no isBetween() method, I though...
Bacillus asked 15/2, 2013 at 15:9
2
Let's say I have a date string 2015-02-01 - (1st Feb 2015)
Today we have 2016-07-02 (2nd Jul 2016)
We can easily see that the older date took place approximately 1 year and 5 months and 1 day ago...
Lederman asked 2/7, 2016 at 9:58
8
I had this working fine for the middle of the year but now that we've rolled over to a new year, my code breaks. I need to get the month name and year for the previous 6 months.
My modified code:
...
Swot asked 8/1, 2015 at 16:7
© 2022 - 2024 — McMap. All rights reserved.