---
title: "统计两个日期之间的天数"
author: "Illy"
date: "2011-05-19T09:55:01Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2011-05-19T09:55:01Z"
id: 1049891
url: "https://illy.iteye.com/blog/1049891"
---

long ss = Date.parse("2010-1-9 8：00：00".replaceAll("-","/"));
long ss1 = Date.parse("2010-1-13 13：24：55".replaceAll("-","/"));
long ss2 = ss1 - ss;
long day = ss2/(1000*60*60*24) //得到两个时间相隔天数