java.text.SimpleDateFormat formatter = new SimpleDateFormat( "yyyy-MM-dd "); String date = formatter.format(n