How to Get System Date and Time Format in selenium webdriver

Опубликовано: 29 Ноябрь 2017
на канале: Anish Technology
528
9

Anish kumar singh
This is my How to Get System Date and Time Format in selenium webdriver.

How to use the Date and SimpleDateFormat classes in order to get the date and/or time formatted as a string in the fashion you want.
.
Let us consider that we have a test case in which you have to validate Some records with date and time. So to handle this we must have to get system date and time.

Before get the date and time you must have to know few important paints. And the points are:

1. In which format you want date and time and options are:


a) MM/dd/yyyy HH:mm:ss

b) dd/MM/yyyy HH:mm:ss

c) yyyy/dd/MM HH:mm:ss

d) yyyy/MM/dd HH:mm:ss

You can chose any one format that you want.

2. You have to use SimpleDateFormat class.
3. You have to create object of SimpleDateFormat class.
4. Get the current date and time of the system
5. Format the Date as required.

click on #LIKE ,#SHARE and #SUBSCRIBE button for more updates from this channel.
Subscribe our YouTube Channel for getting updated videos
https://www.youtube.com/channel/UCJza...

Like us in Face book
==========================================
https://www.facebook.com/profile.php?...

Like us in Instagram
==========================================
  / eranishs  

Like us in Twitter
==========================================
twiter https://twitter.com/Anishku29031647?l...

Like us in Linkedin
==========================================
  / anish-kum.  .


Смотрите видео How to Get System Date and Time Format in selenium webdriver онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Anish Technology 29 Ноябрь 2017, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 528 раз и оно понравилось 9 людям.