title: uidatepicker 24hour formate in ios
body: <p>I am Trying to assign the <code>24 hour</code> formate to <code>UIDATEPICKERVIEW</code> but i have not exactly idea to implement it.</p>
  
  <p>in my <strong>view.h</strong> file  </p>
  
  <pre><code> @property(nonatomic,retain) IBOutlet UIDatePicker *picker_alarm;
  </code></pre>
  
  <p>in my <strong>view.m</strong> file  </p>
  
  <pre><code>picker_alarm.date=[NSDate date];  
  </code></pre>
  
  <p>in my <strong>.xib</strong> file</p>
  
  <p>i have taken uidatepicker and its <strong>Mode</strong> Property to <strong>Time</strong> in viewcontroller.  </p>
  
  <p><img src="https://i.stack.imgur.com/BrHaT.png" alt="Here is the my **Output**"></p>