Here you can find the source of parseLastfmDate(String date)
public static Date parseLastfmDate(String date)
//package com.java2s; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; public class Main { public static Date parseLastfmDate(String date) { if (date == null) { return null; }/* w w w.j a v a 2s .com*/ SimpleDateFormat dateFormat = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss"); dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); Date playlistDate = null; try { playlistDate = dateFormat.parse(date); } catch (ParseException e) { e.printStackTrace(); } return playlistDate; } }