List of utility methods to do Date Format String Create
String | getMySQLDateFormat() get My SQL Date Format Calendar now = Calendar.getInstance(); int month = now.get(Calendar.MONTH) + 1; int day = now.get(Calendar.DAY_OF_MONTH); int year = now.get(Calendar.YEAR); return year + "-" + month + "-" + day; |