I want to convert my date (which is in String format), e.g. 13-09-2011, into Timestamp. I used below code but I got the 2011-09-13 00:00:00.0 as a result. But I want Timest
It may can help you
long time= System.currentTimeMillis();//timestamp in milliseconds of current time String tp = Long.toString(time);//use timestamp as a string