class DateUtil {

    public static Date getRemoteDate(String url) {
        if (url == null) {
            return null;
        }

        URLConnection uc;
        try {
            uc = new URL(url).openConnection();
            uc.connect(); // 发出连接
            return new Date(uc.getDate());// 生成连接对象
        } catch (IOException e) {
            return new Date();
        }

    }

}