How to Get System Date and Time Format in selenium webdriver

Published: 29 November 2017
on channel: 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.  .


Watch video How to Get System Date and Time Format in selenium webdriver online without registration, duration hours minute second in high quality. This video was added by user Anish Technology 29 November 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 528 once and liked it 9 people.