get curr month start date, last month end date
2009-05-05 11:38
281 查看
declare @d datetime
set @d = '2009-05-05'
select dateadd(dd, -day(@d)+1, @d) as curr_mth_start, dateadd(dd, -day(@d), @d) as last_mth_end
set @d = '2009-05-05'
select dateadd(dd, -day(@d)+1, @d) as curr_mth_start, dateadd(dd, -day(@d), @d) as last_mth_end
相关文章推荐
- get the last date of a month in oracle
- 【转】MySQL里获取当前week、month、quarter的start_date/end_date
- MySQL里获取当前week,month,quarter 的 start_date/end_date
- ABAP CALL FUNCTION 'DATE_GET_MONTH_LASTDAY' 取每月最后一天 'DATE_GET_WEEK'取周
- PHP: Get start and end dates of a week from date(‘W’) [转]
- php函数ob_start()、ob_end_clean()、ob_get_contents()
- debug : StartService failed, getlasterror = 0x7f
- JQuery UI datepicker在选择startDate与endDate时手动清空数据后,时间选择依然有限制问题!
- debug : StartService failed, getlasterror = 0x7f(127) 转
- Sql Get Last Day of Month...
- ob_start,ob_end_clean,ob_get_contents函数
- ob_start、ob_get_contents()、ob_end_clean();用法
- 缓冲函数ob_get_contents() ob_end_clean() ob_start()的用法
- php函数ob_start()、ob_end_clean()、ob_get_contents()
- Sql Get Last Day of Month...
- get last date record of each product
- PHP经验——输出缓冲区处理函数:ob_start、ob_get_contents、ob_end_clean、ob_end_flush
- php函数ob_start()、ob_end_clean()、ob_get_contents()
- 关于ob_get_contents(),ob_end_clean(),ob_start(),的具体用法详解
- ob_start、ob_get_contents()、ob_end_clean()等用法