Jump to content

Date, Strings and RegExp OH MY!


Jace
 Share

Recommended Posts

; Check expired date
    $date = _NowDate()
    $date = StringRegExpReplace($date, "/", "")
    $edate = "3152007"
    If $date >= $edate Then
        MsgBox(64, "Expired", "Program is a bit out of date maybe you should update! " & $edate & " cdate: " & $date)
        Else
    DoSetup()
EndIf

Just trying to set an expired date and compare it to the current date and if the current date is equal to or less than the edate then continue on Else update.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...