To convert GMT to Australian Central Standard Time (ACST) in Swift, follow these steps:
DateFormatter
object and set its time zone to GMT:main.swift89 chars3 lines
main.swift49 chars2 lines
main.swift63 chars2 lines
DateFormatter
object and set its time zone to ACST:main.swift112 chars3 lines
main.swift53 chars2 lines
dateFormatter
and convert it back to a string using the acstDateFormatter
:main.swift116 chars3 lines
This will allow you to convert a GMT date string to an Australian Central Standard Time (ACST) date string in Swift.
gistlibby LogSnag