title: Sitecore: Get child items of parent item when the items are in publish restricted period
body: <p>I am trying to get the children items of a Item.,of which some of the child items  applied publish restrictions and there end date had expired.
  I want to collect all the child items, whether it's end expired or not.
  when i debugged my code i got only those items which have end date in time.
  I have used following code</p>
  
  <pre><code>var childItems=item.GetChildren();
  </code></pre>
  
  <p>the child items collection is collecting only those child items which have there end date in time.</p>
  
  <p>is there any method to collect all the items??</p>
  
  <p>I have asked in sitecore forum, they asked to get child items from master database, but that approach also not working. i have tried following code also.</p>
  
  <pre><code>Sitecore.Data.Database master = Sitecore.Configuration.Factory.GetDatabase("master");
  Item parentNode= master.GetItem("ItemNAme");
  var childItems=parentNode.GetChildren();
  </code></pre>
  
  <p>The childitems is only collecting those child items whose end date is not expired
  Please suggest me some solution for this</p>
  
  <p>Thanks in advance</p>
  
  <p>-Vaibhav</p>