LocalDate today = LocalDate.now(); // Today's date is 10th Jan 2022 LocalDate birthday = LocalDate.of(1980, Month.JANUARY, 1); // Birth date Period p = Period.between(birthday, today); // Now access the values as below System.out.println(p.getDays()); //9 System.out.println(p.getMonths()); //0 System.out.println(p.getYears());
I have been working for hours to solve my errors but you... YOU ARE THE BESTTTTTTT thank you so much :)
Happy to help
You saved my life with a 1.5 minute video. You must be the best of best person! Thanks :))
Thank you 👍👍
😇
Thanks bro...finally works
👌👌👌
Thank u 🙏🙏
Can you tell me how to fetch data from database on a particular date
bro, i want to add Date as String from my frontend (user will enter date) and it should get stored in database
in mysql, what type of variable you used to save date and time??
timestamp
Thanks bro
I want to get age from date of birth where age is in the table. There are 4 persons age to be calculated individually.can u plss help me with that
part15 kaha hai vdeo
When I use it @Temporal to my application my response gives null for that field
Temporal communicate with database so basically we use it with @entity class
Hi can you help me to get age from date of birth
LocalDate today = LocalDate.now(); // Today's date is 10th Jan 2022 LocalDate birthday = LocalDate.of(1980, Month.JANUARY, 1); // Birth date Period p = Period.between(birthday, today); // Now access the values as below System.out.println(p.getDays()); //9 System.out.println(p.getMonths()); //0 System.out.println(p.getYears());