Manage Learn to apply best practices and optimize your operations.

Date To Number For Comparison

Some times dates are easier to deal with when they are turned into numbers.
Dim nowDate As NotesDateTime
Dim nowTime As Double

Set nowDate = New NotesDateTime( "" )

nowDate.setNow
nowTime = Cdbl(Mid$(Cdbl(nowDate.lslocaltime),6))
' ".0416666667" represents 1:00 AM and ".2083333333" represents 5:00 AM
If nowTime > .0416666667 And nowTime < .2083333333 Then
Print "Run the over night agent
Else
Print "Run the immediately agent
End If

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close