Validating Dates in Java Using SimpleDateFormat

preview_player
Показать описание
Hello there guys and grills, Max ODidily is back with another Java tutorial to help you get that A in your practical exam. Today we are here with validating the format of the Date. We will get th user input, try and convert it to a simpledateformat. If it works, it is valid, if not is is invalid. Hope you enjoy and see you soon!

Easter holidays are over but I will try to upload as often as possible. Why not subscribe to keep notified when I upload?

Social media:

Validating Dates in Java Using SimpleDateFormat
Рекомендации по теме
Комментарии
Автор

Max you are the best. Thank you much. I was stuck on this one problem for a week and u saved my life. Thanks mate! I couldn't find anything on Youtube before I saw your channel.

mikaeelsyed
Автор

if you input the date string "31/01/202" then you get a false true, why?

greg
Автор

my variable is object type. how to cast my object variable to string for just dd/MM/yyyy

mecnun.c
Автор

How will check date format if we don’t know which format of string is

davidjawhpan
Автор

You are best . Thanks u . So your program have problem. When we input "30/12/20011117" your result it's also true ! The result should be 'false'

vantaitran