# getDate

URL: https://caijiao.org/date-fns/day/getDate
Source: docs/date-fns/day/getDate.md
Description: 返回给定日期的月份中的某一天（1-31）。

返回给定日期的月份中的某一天（1-31）。

```javascript
import { getDate } from "date-fns";

// 示例日期
const date = new Date(2024, 0, 15); // 2024年1月15日

// 获取日期的月份中的某一天
const dayOfMonth = getDate(date);

console.log("日期的月份中的某一天：", dayOfMonth);
// 日期的月份中的某一天：15
```
