以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  请教,如何让日期显示为年-月  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=191628)

--  作者:SUV2258
--  发布时间:2024/4/26 22:32:00
--  请教,如何让日期显示为年-月
请教下各位老师,如何能让日期格式列中的内容只显示为年-月,而不是显示年月日,例如显示为2024年5月


--  作者:有点蓝
--  发布时间:2024/4/27 8:51:00
--  
drawcell事件

if e.col.name = "日期列" then
if e.row.isnull("日期列") = false
e.text = format(e.row("日期列"),"yyyy年MM月")
end if
end if