Print out the value of the date variable so you can see what it really is. You want it to have some value, but what value does it really have?
Type: Posts; User: Norm
Print out the value of the date variable so you can see what it really is. You want it to have some value, but what value does it really have?
This is the line that formats the date:
txtarrival.setText(sdf.format(date));
What is the value of the variable: date when that statement is executed? Is it always the same?
Please Edit your post and wrap your code with
<YOUR CODE HERE> to get highlighting
Can you explain? Where is this happening? What lines of code show this?