Home > Database > Mysql Tutorial > 判断一个日期是否为月末

判断一个日期是否为月末

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 14:56:37
Original
2849 people have browsed it

判断一个日期是否为月末 无 DECLARE @Dt DATETIME SET @Dt = '2011-06-30'IF MONTH(@Dt) != MONTH(DATEADD(DAY,1,@Dt)) PRINT 'End Of Month'

判断一个日期是否为月末
DECLARE @Dt DATETIME 
SET @Dt = '2011-06-30'
IF MONTH(@Dt) != MONTH(DATEADD(DAY,1,@Dt))
    PRINT 'End Of Month'
Copy after login
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template