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 linesmain.swift49 chars2 linesmain.swift63 chars2 linesDateFormatter object and set its time zone to ACST:main.swift112 chars3 linesmain.swift53 chars2 linesdateFormatter and convert it back to a string using the acstDateFormatter:main.swift116 chars3 linesThis will allow you to convert a GMT date string to an Australian Central Standard Time (ACST) date string in Swift.
gistlibby LogSnag