To find out an item is of type DATE or TIME, i wrote the below code:
Dim doc as Notesdocument
Dim item as NotesItem
Dim val0, isDate%, isTime%
'Set the document object
Set doc = …
'Set item
Set item = …
If Item.Type = 1024 then 'Item is of type : DATETIMES
val0 = Item.Values(0)
If cbl(val0) >= 1 then
isDate% = True
else
isTime% = True
end if
end if
As per my knowledge, cdbl converts the Date value to a number greater than or equal to 1, where as it converts the Time value to a number either 0 or a number with fractional part (which always less than 1).
Just i want to know whether my calculatin is right or not.
If some one has other way to find out whether an item is of type DATE or TIME, please let me know.