prolificinteractive / material-calendarview

A Material design back port of Android's CalendarView
https://prolificinteractive.github.io/material-calendarview/
MIT License
5.92k stars 1.32k forks source link

Show Current Date & One Select Date #996

Open jarroyoesp opened 5 years ago

jarroyoesp commented 5 years ago

I want to show the current date and the date selected by user. I try to use MULTIPLE_SELECTION but using this i have more than one date selected by the user. Anyone knows how can I achieve that? Thanks.

devrajmaker commented 4 years ago

go on the selection mode and select the mode you want and then click on the current date get current date gives the date which you have selected

Sadiquedeveloper commented 4 years ago

Try this Code in Get Current Date CODE:

SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
Date date = new Date();
Toast.makeText(this, formatter.format(date), Toast.LENGTH_SHORT).show();

And if you want to show a date selected by user then click on particular date and then click on GET SELECTED DATES.

HatzoriHanzo commented 3 years ago

I want to show the current date and the date selected by user. I try to use MULTIPLE_SELECTION but using this i have more than one date selected by the user. Anyone knows how can I achieve that? Thanks.

please tell me how did u highlight the current date, im having a lot of issues trying to find it...

everything works fine, all i wanna do is hihglight the current date as the view gets loaded.