展开全部
global function string uf_firstday ();string ls_date
date ld_today
ld_today=date(today())
choose case month(ld_today)
case 1 to 3
ls_date=string(year(ld_today))+"-01-01"
case 4 to 6
ls_date=string(year(ld_today))+"-04-01"
case 7 to 9
ls_date=string(year(ld_today))+"-07-01"
case 10 to 12
ls_date=string(year(ld_today))+"-10-01"
end choose
return ls_date
end function
取该季度第一天
global function string uf_lastday ();string ls_date
date ld_today
ld_today=date(today())
choose case month(ld_today)
case 1 to 3
ls_date=string(year(ld_today))+"-03-31"
case 4 to 6
ls_date=string(year(ld_today))+"-06-30"
case 7 to 9
ls_date=string(year(ld_today))+"-09-30"
case 10 to 12
ls_date=string(year(ld_today))+"-12-31"
end choose
return ls_date
end function
取该季度最后一天
date ld_today
ld_today=date(today())
choose case month(ld_today)
case 1 to 3
ls_date=string(year(ld_today))+"-01-01"
case 4 to 6
ls_date=string(year(ld_today))+"-04-01"
case 7 to 9
ls_date=string(year(ld_today))+"-07-01"
case 10 to 12
ls_date=string(year(ld_today))+"-10-01"
end choose
return ls_date
end function
取该季度第一天
global function string uf_lastday ();string ls_date
date ld_today
ld_today=date(today())
choose case month(ld_today)
case 1 to 3
ls_date=string(year(ld_today))+"-03-31"
case 4 to 6
ls_date=string(year(ld_today))+"-06-30"
case 7 to 9
ls_date=string(year(ld_today))+"-09-30"
case 10 to 12
ls_date=string(year(ld_today))+"-12-31"
end choose
return ls_date
end function
取该季度最后一天
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询