[quote='789352022, BabyJ, /thread/756212?answerId=789352022#789352022, /profile/BabyJ']
So you're not using SwiftUI. You should probably place this post in the UIKit topic instead so it's less confusing.
In UIKit above property isn't available
I believe UIDatePicker has a locale property that you can assign a custom locale to. It will do the same as the SwiftUI solution.
If this doesn't work, or you have already tried it, then you need to provide more context and the code you are using so we can understand what is going on.
0 comments
[/quote]
yes, but if i set custom locale "us_POSIX" locale for 12 hour and "us_GB" for 24 hour format. working fine in device use gregorian calendar else datePicker year not showing properly in month & year section like when i use japanese calendar year shows "6" instead of "Reiwa 6"
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: