Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we change display format of action sheet date picker? #268

Closed
raheelahmad786 opened this issue Apr 26, 2016 · 4 comments
Closed

Can we change display format of action sheet date picker? #268

raheelahmad786 opened this issue Apr 26, 2016 · 4 comments
Labels

Comments

@raheelahmad786
Copy link

Hi,

I am using ActionSheetDatePicker to display date, Can i change the display format of action sheet date picker i.e dd / mm / yyyy. ?

Thanks,

@oziphantom
Copy link

Yes, you need to have the locale set to something that uses it that way. For example

[picker setLocale:[NSLocale localeWithLocaleIdentifier:@"en-AU"]];

That will give you DD/MMM/YYYY

@SalvatoreAD
Copy link

is it possible to have this format "eeee, dd / mm/ yyyy"??

@Afrah-Tayyab
Copy link

Hi,
I am using ActionSheetDatePicker to display time, Can i change the display format of action sheet date picker i.e h:mm a. as i am using two languages it working fine for english lang but for arabic it works like "a mm:h" i want that for both it should work like "h:mm a"
Thanks,

@skywinder
Copy link
Owner

skywinder commented Dec 24, 2019

Hello. this question is related to UIDatePicker (all the properties that it has you can set)
See this topic for details about date format.

If it doesn't work: You can create your own picker based on AbstractActionSheetPicker or use ActionSheetCustomPicker to implement it.

Feel free to reopen it, if it still actual. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants