let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "yyyy-MM-dd"
let localeIdentifier = "ar_AE"
dateFormatter.locale = Locale(identifier: localeIdentifier)
if let date = dateFormatter.date(from: "2022-12-26") {
dateFormatter.dateFormat = "dd MMM YYYY"
let displayDate = dateFormatter.string(from: date)
print(displayDate) // "26 ديسمبر 2023"
}
Converted date is one year ahead of the actual date. This issue occurs only with specific dates ranging from 26-Dec-2022 to 31st-Dec-2022, when Arabic locale is selected and on IOS 16.0 and above devices.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I am seeking advice on improving the visibility of my iOS app, "noon Shopping, Food, Grocery," in Spotlight search results for certain keywords. Despite the app's name containing keywords such as "food" and "grocery," it does not seem to appear as prominently in Spotlight searches for these terms as other apps, like "Careem - rides, food & more" which appears readily when searching for "food."
Topic:
App Store Distribution & Marketing
SubTopic:
General
Tags:
App Store
Spotlight
Core Spotlight