title: Declare Date Type Global Variable and pass that to Child Job from Parent Job
body: <p>I want to create a <code>Date</code> type global variable which I want to pass to a child job. I am able to pass <code>String</code> and <code>Integer</code> type to child one. But getting hard luck with <code>Date</code> type as shown in this image:</p>
  
  <p><a href="https://i.stack.imgur.com/ZNUZw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZNUZw.png" alt="enter image description here"></a></p>
  
  <p>Below is the code I am writing in my <em>tjavarow</em>. In the child job context the variables pass this global variable's value. And I'm using those, now, in the child job <code>toracleInput</code>. I have to use the two <code>Date</code> type Contexts where the global variable <code>Value</code> will be coming from the parent job.</p>
  
  <p><strong>This is my code:</strong></p>
  
  <pre><code>String fromdate_file_epsilon=input_row.START_DATE1; 
  globalMap.put("fromdate_file_epsilon", fromdate_file_epsilon);
  String todate_file_epsilon = input_row.END_DATE1; 
  globalMap.put("todate_file_epsilon",todate_file_epsilon); 
  Date fromdate_epsilon = input_row.START_DATE;
  globalMap.put("fromdate_epsilon", fromdate_epsilon); 
  Date todate_epsilon = input_row.END_DATE; 
  globalMap.put("todate_epsilon", todate_epsilon); 
  Integer load_key_epsilon = input_row.LOAD_KEY;
  globalMap.put("load_key_epsilon", load_key_epsilon);
  System.out.println(fromdate_epsilon);
  </code></pre>
  
  <p>I am passing the global variable values of the parent job to the child job's context values like <code>Brand=((String)globalMap.get("brand_epsilon")</code> on the <code>ChildJob</code> component.</p>