Announcement

Collapse
No announcement yet.

Help with date codeing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with date codeing

    Hi

    I would like a script that checks a date (in the future) to see if it should work or not.

    ie
    if the date is 01/01/2004 then display this message and not run the rest of the script

    greatful for any help

  • #2
    Here is some code...

    This code is an exampel of what you need..

    Brad
    Attached Files
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      Re: Reply to post 'Help with date codeing'

      I use something like this

      var vToday = new Date();
      var vExpire = new Date("12/05/2003");

      function main(){
      if(vToday > vExpire)
      bExpired = true;

      if(bExpired) {
      drawTextRelative( -50, 0, "Expired Study", Color.blue, null,
      Text.RELATIVETOBOTTOM, "Courier", 10 ,12);
      return;}
      }


      >

      Comment

      Working...
      X