+ Reply to Thread
Results 1 to 7 of 7

Thread: System Date

  1. #1

    Default System Date

    Is it possible to get the system date and abort the install if the system date is outside a given range?

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: System Date

    Hello,

    Yes, absolutely no problem. You have several completely different options to handle this. For example, the "Expiration Date Checking.sb8" example (part of the Examples Package). Perhaps this already helps? If not, let me know what you need and I can tell you how to do it.

    Friedrich
    Attached Images Attached Images  

  3. #3

    Default Re: System Date

    I was trying something like that....but your example looks better for my purposes....however....

    I did pretty much exactly what you did. My INSTALLERDATE gets set to 20130829 then my DATE_TODAY gets set to 2013/08/29. When it does the Julian conversion it converts DATE1 to 2456534 and DATE2 to 0.


    As a side note - I can't do: Set Variable %INSTALLERDATE% to FUNCTION:Julian Day (%INSTALLERDATE%)? Just saving an additional variable.
    Attached Files Attached Files

  4. #4

    Default Re: System Date

    OOOOPppppssssss...disregard previous reply....I found the missing format from my code.....D'OH

  5. #5
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: System Date



    Thanks for the update!

    Friedrich

  6. #6

    Default Re: System Date

    And it appears you CAN do: Set Variable %INSTALLERDATE% to FUNCTION:Julian Day (%INSTALLERDATE%)...must be my old FORTRAN training....saving a variable....

  7. #7
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: System Date

    Looks good

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •