How to convert current date into string in java? December 1, 2022 by Tarik String date = new SimpleDateFormat("dd-MM-yyyy").format(new Date());