tags:

views:

83

answers:

2

I am using a datepicker. Now, what i have to do is to show day, date, month and year only. Is there any way to do that. Thanks in advance.

A: 

You cannot customize the UIDatePicker instead you can change the mode it appears Try any of the following as per your requirement

  1. UIDatePickerModeTime,
    // Displays hour, minute, and optionally AM/PM designation depending on the locale setting (e.g. 6 | 53 | PM)

  2. UIDatePickerModeDate, // Displays month, minute, and year depending on the locale setting (e.g. November | 15 | 2007)

  3. UIDatePickerModeDateAndTime,
    // Displays date, hour, minute, and optionally AM/PM designation depending on the locale setting (e.g. Wed Nov 15 | 6 | 53 | PM)

4.UIDatePickerModeCountDownTimer
// Displays hour and minute (e.g. 1 | 53)

Happy Coding.

Suriya
A: 

Thanks for the help. Is there any other way to create a customize date picker? I will appreciate your help.

arslan
Can u tell what exactly do you want to do in the custom picker... because the below 5 modes does all thing themselves... Kindly elaborate your question and be specific so we can provide answer as per your exact requirement..
Suriya
instead of replying through answr try passing on comment to the answers of others..
Suriya