Top "Datetime" questions

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

C# DateTime to "YYYYMMDDHHMMSS" format

I want to convert a C# DateTime to "YYYYMMDDHHMMSS" format. But I don't find a built in method to get …

c# datetime
How do I get current date/time on the Windows command line in a suitable format for usage in a file/folder name?

Update: Now that it's 2016 I'd use PowerShell for this unless there's a really compelling backwards-compatible reason for it, particularly because …

windows datetime batch-file cmd
Converting a String to DateTime

How do you convert a string such as 2009-05-08 14:40:52,531 into a DateTime?

c# datetime
How to print a date in a regular format?

This is my code: import datetime today = datetime.date.today() print(today) This prints: 2008-11-22 which is exactly what …

python datetime date
Add days to JavaScript Date

How to add days to current Date using JavaScript. Does JavaScript have a built in function like .Net's AddDay?

javascript date datetime time
How do you set a default value for a MySQL Datetime column?

How do you set a default value for a MySQL Datetime column? In SQL Server it's getdate(). What is the …

mysql datetime
How do I query for all dates greater than a certain date in SQL Server?

I'm trying: SELECT * FROM dbo.March2010 A WHERE A.Date >= 2010-04-01; A.Date looks like: 2010-03-04 00:00:00.000 However, …

sql sql-server datetime
Converting unix timestamp string to readable date

I have a string representing a unix timestamp (i.e. "1284101485") in Python, and I'd like to convert it to a …

python datetime unix-timestamp strftime
Sql query to insert datetime in SQL Server

I want to insert a datetime value into a table(SQL Server) using the sql query below insert into table1(…

sql sql-server-2008 datetime
Sql Server string to date conversion

I want to convert a string like this: '10/15/2008 10:06:32 PM' into the equivalent DATETIME value in Sql Server. In Oracle, …

sql-server tsql datetime sql-server-2005 string-to-datetime