title: Jenkins Date Parameter Plugin - How to use it in a Declarative Pipeline
body: <p>What is the syntax for using the Date Parameter Plugin in a declarative pipeline.</p>
  
  <p>So far I have tried this:</p>
  
  <pre><code>pipeline {
  agent {
      node {
          label 'grange-jenkins-slave'
      }
  }
  
  options { disableConcurrentBuilds() }
  
  parameters {
      date(name: 'EffectiveDate',
              dateFormat: 'MMddyyy',
              defaultValue: 'LocalDate.now();',
              description: 'Effective Date',
              trim: true)
      file(name:'algo.xlsx', description:'Your algorithm file')
      choice(name: 'currency',
              choices: ['USD'],
              description: 'Select a currency')
  
  }
  stages {
      stage('genRates') {
          steps {
              script {
                  echo "test"
              }
          }
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>The error I get is <code>WorkflowScript: 11: Invalid parameter type "date". Valid parameter types: [booleanParam, choice, credentials, file, text, password, run, string] @ line 11, column 3.</code></p>