Top "Date" questions

A date is a reference to a particular day represented within a calendar system, and consists of year, month and day.

Iterating through a range of dates in Python

I have the following code to do this, but how can I do it better? Right now I think it's …

python date datetime iteration
How to get only the date value from a Windows Forms DateTimePicker control?

I'm building an application with C# code. How do I get only the date value from a DateTimePicker control?

c# winforms date datetimepicker
Typescript Date Type?

How do I express dates in TypeScript? Dates aren't a TypeScript type, so do I use any or object? Seems …

date typescript
How to subtract X day from a Date object in Java?

I want to do something like: Date date = new Date(); // current date date = date - 300; // substract 300 days from current date …

java date datetime calendar java.util.date
Java format yyyy-MM-dd'T'HH:mm:ss.SSSz to yyyy-mm-dd HH:mm:ss

I'm trying to format a date in yyyy-MM-dd'T'HH:mm:ss.SSSz format to yyyy-mm-dd HH:mm:ss, which should be …

java parsing date simpledateformat
How to convert currentTimeMillis to a date in Java?

I have milliseconds in certain log file generated in server, I also know the locale from where the log file …

java date
How do I get the time of day in javascript/Node.js?

I want to get 1 to 24, 1 being 1am Pacific Time. How can I get that number in Node.JS? I want …

javascript datetime date node.js
Difference in months between two dates

How to calculate the difference in months between two dates in C#? Is there is equivalent of VB's DateDiff() method …

c# .net vb.net date
Function to convert timestamp to human date in javascript

How to convert this timestamp 1382086394000 to 2013-10-18 08:53:14 using a function in javascript? Currently I have this function: function cleanDate(…

javascript node.js date express timestamp
How to calculate time elapsed in bash script?

I print the start and end time using date +"%T", which results in something like: 10:33:56 10:36:10 How could I calculate and …

bash date