You create a SimpleDateFormat object on which you set a Date/Time pattern matching your string input (see the SimpleDateFormat API for a list of available pattern elements, and how they are used), then you parse your string date/time, and finally you get the date/time as a long from the Date object.
Like this sample:
Regards, Rene Larsen
posted 7 years ago
thanks a lot
They weren't very bright, but they were very, very big. Ad contrast: