Office中国论坛/Access中国论坛

标题: 这两个定义函数在SQL Server里怎么做 [打印本页]

作者: jskscxy    时间: 2006-11-26 00:23
标题: 这两个定义函数在SQL Server里怎么做
Function PayStartDay() As Date
'工资结算开始日期
    PayStartDay = DateSerial(Year(Date), Month(Date) - 1, 26)
End Function


Function PayEndDay() As Date
'工资结算截止日期
    PayEndDay = DateSerial(Year(Date), Month(Date), 25)
End Function

作者: ikolo    时间: 2006-12-4 23:32
好像没有现成的函数

你只能用cast从字符串转.






欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) Powered by Discuz! X3.3