Top "Date-format" questions

`DateFormat` is a Java Standard Edition library class which provides utility methods to parse and format dates.

How to convert a String to a Date using SimpleDateFormat?

I have this code snippet: DateFormat formatter1; formatter1 = new SimpleDateFormat("mm/DD/yyyy"); System.out.println((Date)formatter1.parse("08/16/2011")); When …

java datetime date-format simpledateformat
Convert seconds to HH-MM-SS with JavaScript?

How can I convert seconds to an HH-MM-SS string using JavaScript?

javascript date time date-format time-format
How to format a Date in MM/dd/yyyy HH:mm:ss format in JavaScript?

Possible Duplicate: Formatting a date in javascript I know other possible formats in JavaScript Date object but I did not …

javascript date date-format
How to format Joda-Time DateTime to only mm/dd/yyyy?

I have a string "11/15/2013 08:00:00", I want to format it to "11/15/2013", what is the correct DateTimeFormatter pattern? I've tried many and …

java jodatime date-format
PHP Regex to check date is in YYYY-MM-DD format

I'm trying to check that dates entered by end users are in the YYYY-MM-DD. Regex has never been my strong …

php regex date-format
DB2 Date format

I just want to format current date into yyyymmdd in DB2. I see the date formats available, but how can …

sql date db2 date-format
How to get a particular date format ('dd-MMM-yyyy') in SELECT query SQL Server 2008 R2

I am using CONVERT(data_type(length),expression,style) function to change the format of a date in a SELECT …

sql-server-2008 date select date-format
Rails formatting date

I am posting a date to an API and the required format is as follows: 2014-12-01T01:29:18 I can …

ruby-on-rails ruby date date-format
Convert and format a Date in JSP

From my JSP Page, I am getting Date in this format. Fri May 13 2011 19:59:09 GMT 0530 (India Standard Time) How can I …

jsp date-format
How to change date format using jQuery?

I have a date in a format like this fecha2.value = '2014-01-06', but I want to change …

javascript jquery date-format