material-calendarview icon indicating copy to clipboard operation
material-calendarview copied to clipboard

Show Current Date & One Select Date

Open jarroyoesp opened this issue 5 years ago • 3 comments

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.

jarroyoesp avatar Oct 09 '19 08:10 jarroyoesp

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

devrajmaker avatar Jul 11 '20 07:07 devrajmaker

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.

Sadiquedeveloper avatar Jul 11 '20 07:07 Sadiquedeveloper

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.

HatzoriHanzo avatar Oct 08 '21 20:10 HatzoriHanzo