以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  根据日期得到“年、月、日”  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=191898)

--  作者:13678391902
--  发布时间:2024/5/14 16:19:00
--  根据日期得到“年、月、日”
图片点击可在新窗口打开查看
以下代码可以得到“”死亡年度“”,怎么做可以自动生存“死亡月份”或“日”,请老师帮忙完善一下,谢谢。
End Select
If e.DataCol.Name = "死亡时间" Then
    If e.DataRow.IsNull("死亡时间")Then
        e.DataRow("死亡年度") = Nothing
    Else
        e.DataRow("死亡年度") = e.DataRow("死亡时间").year
    End If
End If

--  作者:有点蓝
--  发布时间:2024/5/14 16:25:00
--  
http://www.foxtable.com/webhelp/topics/1337.htm