Top "Datetime" questions

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

SQL - The conversion of a varchar data type to a datetime data type resulted in an out-of-range value

I have been getting the following error when running a SQL to convert my data type value from varchar to …

sql-server tsql datetime
Converting datetime.date to UTC timestamp in Python

I am dealing with dates in Python and I need to convert them to UTC timestamps to be used inside …

python datetime utc
Python datetime to string without microsecond component

I'm adding UTC time strings to Bitbucket API responses that currently only contain Amsterdam (!) time strings. For consistency with the …

python datetime datetime-format
How can I convert string to datetime with format specification in JavaScript?

How can I convert a string to a date time object in javascript by specifying a format string? I am …

javascript datetime type-conversion
SQL Server Convert Varchar to Datetime

I have this date format: 2011-09-28 18:01:00 (in varchar), and I want to convert it to datetime changing to this …

sql sql-server datetime formatting varchar
Given a DateTime object, how do I get an ISO 8601 date in string format?

Given: DateTime.UtcNow How do I get a string which represents the same value in an ISO 8601-compliant format? Note …

c# datetime datetime-format iso8601
How do I find the time difference between two datetime objects in python?

How do I tell the time difference in minutes between two datetime objects?

python datetime date-arithmetic
How to parse/format dates with LocalDateTime? (Java 8)

Java 8 added a new java.time API for working with dates and times (JSR 310). I have date and time as …

java datetime java-8 timestamp java-time
Datetime equal or greater than today in MySQL

What's the best way to do following: SELECT * FROM users WHERE created >= today; Note: created is a datetime field.

mysql sql datetime
How to query DATETIME field using only date in Microsoft SQL Server?

I have a table TEST with a DATETIME field, like this: ID NAME DATE 1 TESTING 2014-03-19 20:05:20.000 What I need …

sql-server datetime