|
不难啊。创建一个模块调用就好了。- Function getLunar(ByVal inDate As Date)
- Dim cCal As New ChineseCalendar
- Dim strLunar As String
- cCal.GetDate Year(inDate), Month(inDate), Day(inDate)
- strLunar = cCal.LunarLongDate
- If Len(cCal.SolarTerm) > 0 Then
- strLunar = strLunar & "," & cCal.SolarTerm
- End If
- If Len(cCal.LunarHoliday) > 0 Then
- strLunar = strLunar & "," & cCal.LunarHoliday
- End If
- Set cCal = Nothing
- getLunar = strLunar
- End Function
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|