title: How to display date as YYYYMMDD_HH24 using Solaris shell command?
body: <pre><code>20110216_00
  
  20110216_01
  
  ...
  
  20110216_23
  
  
  20110217_00
  ..
  </code></pre>
  
  <p>and so on</p>
  
  <p>I have tried with</p>
  
  <pre><code>date +'%Y%m%d_%H'
  </code></pre>
  
  <p>but it never starts with 00-23 format but from 01-24 like format, hence I get hour part always incorrect.</p>
  
  <p>Can anybody suggest, how can I get above o/p</p>