A date is a particular point or period of time at which an event occurs, or is expected to.
-1
votes
0answers
13 views
automatic convert Gregorian date to jalali(shamsi) date
I am searching for a solution to automatically convert a Gregorian date to a Shamsi(Jalali) date. The means of the automatic convert is to change only the view of the date in browser and doesn't need ...
3
votes
4answers
36 views
date formatting with/without Moment.js
I am trying to reformat a date that I am getting from an API. In the object I have:
created_at: "2013-06-13T16:29:55.245Z"
I would like to display the date as 6/13/2013. Someone suggested I use ...
0
votes
1answer
18 views
How to display difference between past date and today's date and display them as months and days using jquery
I am beginner with jquery at a level of 1 i think.
I need your help to implement the following:
I have a textbox in one of form in a medical website that I am working on.
That textbox is used to ...
0
votes
1answer
30 views
how to validate and add date using jquery
I am working on a health website.
I am having a field called Last Menstrual Period, its a textbox which has to be filled in by doctor in format of YYYY-MM-DD.
What I want to do is, I have to add 281 ...
0
votes
1answer
18 views
Sorting by date with extra text in field
Hi im trying to sort a field by date (UK) and have it working using the following code:
/* Datatables */
$("#tasks").dataTable({
"sDom": ...
0
votes
1answer
33 views
Importing a bunch of files in matlab
I am trying to extract date and time from the files in my matlab code so i can plot them with time as x-axis.
i have 1000s of files created in seconds.
using
filetime=dir('C:\New\1_23_55 PM.txt');
...
1
vote
3answers
46 views
How do I convert to UTC?
For highstock / highcharts I need the date format to be like this:
series: [{
data: [[1331028000000, 5], [1331031600000, 6], [1331035200000, 4]]
}]
The first number in each array is the ...
0
votes
2answers
26 views
Comparing times (with milliseconds and without dates)
I'm parsing subtitle files (srt format) and here's an example of a line of dialogue:
27
00:01:32,400 --> 00:01:34,300
Maybe they came back
for Chinese food.
The times come in the format
...
0
votes
4answers
17 views
DateTimeFormatter not working as expected with JODA
I'm having troubles getting the correct format for a DateTime. I'm expecting format dd/MM/yyyy HH:mm:ss and I'm getting too much verbose instead. For instance:
DateTime dt;
String ...
0
votes
0answers
11 views
Mocking dates in AngularJS / Jasmine tests
I have a directive that initializes the Date object several times in several functions.
When Unit testing the individual functions I can handle stubbing the date like this:
(function (global) {
...
0
votes
0answers
40 views
remove default sort from sql query and
I want to get records sorted as they are in the query :
SELECT `month`, SUM(order_quantity) AS order_quantity FROM" +
"( SELECT MONTH(date_livraison) AS month, COUNT(*) AS ...
0
votes
1answer
38 views
SQL, SELECT items which specific date is not booked
I have items list. Every single item may be booked for specific date, eg. 2013-01-03 00:00:00, 2013-06-13 00:00:00 etc. I have to filter items in way that shows available items for choosen date. If ...
1
vote
1answer
17 views
Convert xlsx or csv date serial numbers to proper date format in Unix server
I have converted bunch of .xlsx files into .csv files using xlsx2csv.py,a python module. I have noticed some of the date fields were converted as serial numbers.
For example :
41421
41422
41423
41424
...
1
vote
1answer
22 views
Thread level locale setting in java
I am trying to set timezone settings at thread level. For this previously I am using Date and Calendar objects and all of them return same Datetime. I have seen locale settings at JVM level but I have ...
4
votes
3answers
80 views
PHP: why is strtotime() returning “NOW()”?
I'm calling strtotime() on a formatted datetime string and for some reason it always returns NOW()...
If my formatted datetime string (stored in the last_seen attribute) is: 2013-06-13 07:13:04
and ...
1
vote
1answer
52 views
Confuse about DOM manipulation in javascript
I want use +new Date to compute a DOM manipulation time cost in javascript, like insert 240,000 DOM nodes
var t1 = +new Date();
var tbody = document.getElementsByTagName("tbody")[0];
for (var i = ...
0
votes
3answers
23 views
Convert date time format in XSLT
I have a date value in a field in XML file in this format:
<Date value="4/1/2013 5:13:41 PM"/>
I want to convert it into a standard XSD format:
2013-04-01T17:13:41.000Z
How can I do that in ...
1
vote
2answers
103 views
SQL: How to count the number of unique days between date ranges that may overlap?
I have a tricky problem. I have a table of social security contributions as below (SQL Fiddle)
IdPersona fecha_ingreso fecha_egreso
5690180 01/01/1987 30/11/2012
5690180 ...
2
votes
2answers
68 views
Return strings within a range of dates in Ruby
I'm working on a script which looks at a group of files, checks to see to if they have any lines within a "@due" tag followed by a date range, then takes those lines and prints them to a separate ...
5
votes
1answer
26 views
filtering a pandas Dataframe based on date value
I have the following data imported from a csv file using pandas read_csv:
instrument type from_date to_date
0 96000001 W/D & V/L 19951227 19960102
1 96000002 DEED TRUST ...
2
votes
1answer
45 views
Split HTML 5 date input value into three variables
I am trying to give the users the option to use the HTML5 date input to invoke the native date picker via mobile web. Since I do not want to have duplicate calls for the same methods whether the users ...
1
vote
2answers
24 views
find same datetime in arrays of different lengths
Consider the following arrays of julian dates
Jday1 = datenum('2011-01-01 00:00','yyyy-mm-dd HH:MM'):60/(60*24):...
datenum('2011-12-31 23:00','yyyy-mm-dd HH:MM');
Jday2 = datenum('2011-04-01 ...
2
votes
2answers
50 views
Does storing date without time use less bytes?
I saw this link and this:
If you specify a date value without a time component, then the default
time is midnight. If you specify a date value without a date, then the
default date is the ...
1
vote
2answers
21 views
find corresponding dates in matlab
what is the best way of finding which dates are consistent among differnet variables. For example:
a =
2010-04-23 12:45
2010-04-23 13:00
2010-04-23 13:15
2010-04-23 13:30
...
0
votes
1answer
12 views
annual changes with discontinuous dates
This answer has shown me how to get annual changes from data:
UPDATE values_table as a
join values_table as b
ON b.date_sampled = DATE_SUB(a.date_sampled, INTERVAL 1 YEAR)
set a.annual_change = ...
0
votes
2answers
38 views
php get date a week ago
I'm trying to create a selector for elements that are within a week old. i get a timestamp like this Sun, 02 Jun 2013 22:05:00 GMT but the selector should not be affected by time
E.G.
<?
...
3
votes
2answers
86 views
Processing Java Strings and Dates
I need to process a list of Strings which may or may not be times. When I do receive a time, it will need to be converted from "HH:mm:ss" to number of milliseconds before processing:
final String ...
1
vote
1answer
57 views
Calendar in Java 1.6 - strange result
I use this code:
java.util.GregorianCalendar cal1 = new java.util.GregorianCalendar();
cal1.set(java.util.Calendar.HOUR, 22);
cal1.set(java.util.Calendar.MINUTE, 20);
...
2
votes
1answer
20 views
Postgres String to Date EXAMPLE 10Apr77 to 10/04/1977
Good afternoon all,
I'm fairly new to PostgreSQL, so apologies in advance if my question is below the average.
I'm receiving some data in a csv flay file format and is nicely being insert in to a ...
0
votes
3answers
78 views
Checking if date belongs to array of dates
I'm trying to check if a date from a jQuery UI datepicker belongs to an array of dates that are holidays. Can't figure out what I'm doing wrong :(
var holidayArray2013 = [new Date('October 3, 2013 ...