Skip to content
Advertisement

How can I set current date (Today’s date) same as selected date in Material Date Picker Android

How can I set current date (Today’s date) to my local date. My timezone is GMT+07:00. I can just set only setSelection() date but can’t set current date. (Sorry for my any grammatical mistake and thank you in advance) Calendar image

JavaScript

Advertisement

Answer

I could be wrong, but I think you don’t need to worry about timezone at all. It’s all handled automatically. Remove all code regarding to your Calendar c and just do the selection with

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement