Top "Datetime" questions

A DateTime object in many programming languages describes a date and a time of day.

How to convert SQL Server's timestamp column to datetime format

As SQL Server returns timestamp like 'Nov 14 2011 03:12:12:947PM', is there some easy way to convert string to date format like …

sql-server datetime timestamp
Moment js date time comparison

I'm using moment.js to format my date time, here I have two date values, and I want to achieve …

javascript jquery datetime momentjs
Subtract days from a date in JavaScript

Does anybody know of an easy way of taking a date (e.g. Today) and going back X days? So, …

javascript date datetime
MySQL Query GROUP BY day / month / year

Is it possible to make a simple query to count how many records I have in a determined period of …

mysql sql date datetime group-by
How to subtract a day from a date?

I have a Python datetime.datetime object. What is the best way to subtract one day?

python datetime date
Convert DateTime to String PHP

I have already researched a lot of site on how can I convert PHP DateTime object to String. I always …

php datetime
How can I convert a Unix timestamp to DateTime and vice versa?

There is this example code, but then it starts talking about millisecond / nanosecond problems. The same question is on MSDN, …

c# datetime unix epoch data-conversion
In C#, how do I calculate someone's age based on a DateTime type birthday?

Given a DateTime representing a person's birthday, how do I calculate their age in years?

c# .net datetime
How to convert java.util.Date to java.sql.Date?

I am trying to use a java.util.Date as input and then creating a query with it - so …

java sql datetime date
How do I convert a datetime to date?

How do I convert a datetime.datetime object (e.g., the return value of datetime.datetime.now()) to a datetime.…

python datetime