Code examples for java, php, javascript, html5, css, html, mysql and various frameworks.
Java - Convert Date to String
String stringDate = "";
DateFormat dateFormat = new SimpleDateFormat("MM-dd-yyyy HH:mm:ss");
Date date = new Date();
stringDate = dateFormat.format(date);