How to display blank as 00/00/0000 ?

Discussion in 'JavaScript' started by MiserableShake0, Jul 31, 2021.

  1. #1
    I am not a programer
    [​IMG]
    I am using Informer report writer. Trying to pull data from from Column A “lasttermdate” to a new column.
    If lasttermdate has a value, I want to pull the displayed value
    If lasttermdate is blank I want to display 00/00/0000

    I am able to grab the dates not equal to null/blank. But can not get the value 00/00/0000 to display for the blanks.

    Suggestions?

    Code:
    if(lasttermdate = “”) {
    “00/00/0000”;
    } else {
    lasttermdate;
    }
     
    MiserableShake0, Jul 31, 2021 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,821
    Likes Received:
    4,539
    Best Answers:
    123
    Trophy Points:
    665
    #2
    sarahk, Jul 31, 2021 IP