By using this code :
SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\"); Date date = format.parse(dtStart); return date;
In Kotlin you can also get Current Day Name using this. (Requires API level 26)
(Calendar.getInstance() as GregorianCalendar).toZonedDateTime().dayOfWeek