Top "Datetime" questions

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

Get current time in seconds since the Epoch on Linux, Bash

I need something simple like date, but in seconds since 1970 instead of the current date, hours, minutes, and seconds. date …

linux bash datetime
Extracting hours from a DateTime (SQL Server 2005)

I can extract the month and day by using Day(Date()), Month(Date()). I can't extract hours, with HOUR(Date()). …

sql tsql datetime sql-server-2005 hour
How can I truncate a datetime in SQL Server?

What's the best way to truncate a datetime value (as to remove hours minutes and seconds) in SQL Server 2008? For …

sql-server sql-server-2008 datetime truncate
How to get current timestamp in string format in Java? "yyyy.MM.dd.HH.mm.ss"

How to get timestamp in string format in Java? "yyyy.MM.dd.HH.mm.ss" String timeStamp = new SimpleDateFormat("yyyy.…

java date datetime timestamp
DateTime "null" value

I've been searching a lot but couldn't find a solution. How do you deal with a DateTime that should be …

c# datetime null
How to select date from datetime column?

I have a column of type "datetime" with values like 2009-10-20 10:00:00 I would like to extract date from datetime …

mysql date datetime
Convert datetime object to a String of date only in Python

I see a lot on converting a date string to an datetime object in Python, but I want to go …

python datetime
Display the current time and date in an Android application

How do I display the current date and time in an Android application?

android datetime android-date
Adding hours to JavaScript Date object?

It amazes me that JavaScript's Date object does not implement an add function of any kind. I simply want a …

javascript datetime
How to add one day to a date?

I want to add one day to a particular date. How can I do that? Date dt = new Date(); Now …

java datetime