Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98788

I am working on selenium webdriver and want to set the current date

$
0
0

I tried doing this:

Date date = new Date();
String lastDate = (date.toString().trim());
// display time and date using toString()
System.out.println(date.toString());

but here the system date is being displayed as:

"Wed Apr 13 15:39:50 IST 2016"

and all I need is "MM/dd/yyyy"


Viewing all articles
Browse latest Browse all 98788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>