Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
SRP_DateTime AddDays issue.
I am having an issue with SRP_DateTime "AddDays". It isnt quite behaving like I anticipated.
This is basically my test.
SRP_DateTime ("Now") returns in OI format.
SRP_DateTime ("AddDays") requires an OI date format entry according to the docs.
My problem is that my AdjDateTime returns blank.
What have I done wrong?
I can get around it in my case with a straight CurrUTCDateTime + StartTimeAdjust but I would like to use the function as a standard.
I will look at the AddMinutes/AddMonthes/etc shortly to see what they do.
This is basically my test.
1 2 3 4 5 6 7 8 | //Default for now. StartTimeAdjust = 30 ; // in Days //Get Current UTC Date time in OI format. CurrUTCDateTime = SRP_DateTime( "Now" , 1 ) //Add StartTimeAdjust AdjDateTime = SRP_DateTime( "AddDays" , CurrUTCDateTime , StartTimeAdjust ) |
SRP_DateTime ("Now") returns in OI format.
SRP_DateTime ("AddDays") requires an OI date format entry according to the docs.
My problem is that my AdjDateTime returns blank.
What have I done wrong?
I can get around it in my case with a straight CurrUTCDateTime + StartTimeAdjust but I would like to use the function as a standard.
I will look at the AddMinutes/AddMonthes/etc shortly to see what they do.
Comments
It is actually the Utilities EXE install not the RDK I have been using.
I made sure the DLL file was updated. I am now running 2.1.4 (I was running 2.1.1).
Now THAT worked :)
Thanks Kevin. And in overtime as well!
Don doesn't pay you enough!
I don't know about all that but I simply use this: Hit F12 to load the System monitor. run the RDK installer pointing to the extracted path of the Utilities (like image below). When its done, you're done!