Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
247 views
in Programming by
retagged by
I have a date in Java. I need to format it in below format. YYYY-MM-DD hh_mm. How do I format that?

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
This is what you're looking for.

 

SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH_mm");
        return simpleDateFormat.format(new Date());
by
Is it possible to use java Hibernate to connect to the database in Selenium Webdriver instead of using JDBC ? If yes, can you show an example of the connection configuration? Thanks
by The go-to Tester (181 points)
Please post this as a new question so other visitors can get benefited of answers as well.

http://mayurshah.in/ask

If you would like to register, use below link.
http://mayurshah.in/register?to=


Much appreciated.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...