Top "Date-manipulation" questions

How to add 30 minutes to a JavaScript Date object?

I'd like to get a Date object which is 30 minutes later than another Date object. How do I do it …

javascript date date-manipulation
Python datetime - setting fixed hour and minute after using strptime to get day,month,year

I've successfully converted something of 26 Sep 2012 format to 26-09-2012 using: datetime.strptime(request.POST['sample_date'],'%d %b %…

python date datetime time date-manipulation
Simplest way to increment a date in PHP?

Say I have a string coming in, "2007-02-28", what's the simplest code I could write to turn that into "2007…

php datetime date strtotime date-manipulation
Compare two dates Google apps script

What would be the best way to compare two dates? var int = e.parameter.intlistbox; var startDate = rSheet.getRange(parseInt(…

date datetime google-apps-script date-manipulation
Return start and end of year given any year

I need two or one (out) C# method that will take any datetime and return the start date of year …

c# datetime date-math date-manipulation
How to update only the hour from a DATETIME field in MySQL?

I want to update a DateTime column where it will change the hours only without modifying anything else. I can't …

mysql sql datetime hour date-manipulation