I
Dim dBorn As NotesDateTime
Dim dToday As New NotesDateTime(Today)
Dim res As Long
Set dBorn= New NotesDateTime("03.10.1985")
res = dToday.TimeDifference(dBorn)
Msgbox "" & res
Dim dBorn As NotesDateTime
Dim dToday As New NotesDateTime(Today)
Dim res As Long
Set dBorn= New NotesDateTime("03.10.1985")
If (Month(dToday.DateOnly)>=Month(dBorn.DateOnly) And Day(dToday.DateOnly)>=Day(dBorn.DateOnly)) Or(Month(dToday.DateOnly) > Month(dBorn.DateOnly)) Then
res = (Year(dToday.DateOnly) -Year(dBorn.DateOnly))
Else
res = (Year(dToday.DateOnly) -Year(dBorn.DateOnly) -1)
End If
Msgbox "" & res
с помощью формул lotus
Взломай свой первый сервер и прокачай скилл — Начни игру на HackerLab