I want a String hand to be written as the date for the Date object. I'm trying to say that I want to do this:
String date= [date string here!!!]; Date mydate = new Date(date);
Something like that. The reason I want to do this is because I want my network to have a standard date and time, because since I start them from the same machine, the time is taken from the same clock, and every time she gets different times. Therefore, I want to get this time, and also add 1-2 seconds at the end, so that I can test my nodes at different times.
source share