2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

T-SQLで月の日数(月最終日)を取得する

Posted at

ある月の日数を取得したい場合は、月の最終日を取得すればよいので

SELECT DAY(EOMONTH(DATEFROMPARTS(2016,2,1)))
-- result 29

参考

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?