Top "Date" questions

A date is a reference to a particular day represented within a calendar system, and consists of year, month and day.

The first day of the current month in php using date_modify as DateTime object

I can get the Monday of this week with: $monday = date_create()->modify('this Monday'); I would like …

php date datetime
Parse date without timezone javascript

I want to parse date without timezone in JavaScript. I have tried: new Date(Date.parse("2005-07-08T00:00:00+0000")); Returns …

javascript date timestamp-with-timezone
How to select only date from a DATETIME field in MySQL?

I have a table in the MySQL database that is set up with DATETIME. I need to SELECT in this …

mysql date
JavaScript function to add X months to a date

I’m looking for the easiest, cleanest way to add X months to a JavaScript date. I’d rather not …

javascript date
set date in input type date

<input id="datePicker" type="date" />​ i will set today date in datepicker input type date in chrome. $(document).…

javascript html jquery date
What are the date formats available in SimpleDateFormat class?

Can anybody let me know about the date formats available in SimpleDateFormat class. I have gone through api but could …

java date simpledateformat
AngularJS - convert dates in controller

Could anyone please suggest me how to convert date from this 1387843200000 format into this 24/12/2013 inside my controller? Just FYI my …

angularjs date datetime datetime-format ng-controller
Adding n hours to a date in Java?

How do I add n hours to a Date object? I found another example using days on StackOverflow, but still …

java date
MySQL Query - Records between Today and Last 30 Days

I want to return all records that were added to the database within the last 30 days. I need to convert …

mysql date select
Get week number (in the year) from a date PHP

I want to take a date and work out its week number. So far, I have the following. It is …

php date mktime