# 计算 2 个日期之间的时间差

**URL:** <https://www.isharkfly.com/t/topic/8095>\
**Category:** 数据库\
**Created:** [October 16, 2017, 2:43pm UTC](https://www.isharkfly.com/t/topic/8095 "2017-10-16T14:43:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 16, 2017, 2:43pm UTC](https://www.isharkfly.com/t/topic/8095/1 "2017-10-16T14:43:03Z")

</div>

可以用 SQL 计算 2 个日期的时间差

```auto
DATEDIFF(NOW(), v.date_visa_interview),
```
