Java Tricky Program 2 - SimpleDateFormat

preview_player
Показать описание
What will happen when we are parsing a date with invalid digits, for example 32/1/2016 or 1/-1/2016. Watch out this short video to find out and learn something interesting about SimpleDateFormat parsing of String to Date object.
Рекомендации по теме
Комментарии
Автор

That's a new thing I have learnt today. 🙏

shankumondal
Автор

Pankaj your tutorial is really helpful. I would like to appreciate the deep understanding and time that you have invested. Cheers!

rohitahuja
Автор

Very good Pankaj...appriciate your effort..

TheSourabhdas
Автор

u have mentioned G in the SDF constructor and AD in the parse(). May I know what does G and AD are? Because if i remove it output does not gets printed.

kunaljamdade
Автор

I want to add days to present date without using  date libraries of java.how?

lakshmitejaswi
Автор

Hello Pankaj, Thank you for simplifying the doubts with dates. I just had a one question that, when we pass -1 in the place then why does it subtract 2 values for the particular month?. I believe it should subtract only one value.

TheMilinmodi
Автор

i tried this trick, but not working, i think this is version issue, other tricks are working fine.

manishjangra