SWIFT Standards works with the user community to specify and publish Market Practice - rules and best-practice advice on how standards should be deployed to meet particular business needs or to comply with regulation. The SWIFT Standards group maintains several important message standards. Overview SwiftDate exposes several convenient functions to print (and parse, of course) dates and time intervals as strings: as custom string defined by tr35-31format; for example 'yyyy-MM-dd'for '2015-01-05' as ISO8601strings with all available sub specs.
Working with NSDate
, NSDateFormatter
, and NSDateComponents
can be a little convoluted, so I’ve created myself a cheat sheet that will be updated as I discover new tips and tricks in this realm.
The new cheat sheet can be found over at GitHub in the form of an Xcode Playground:
Topics that are included in the Playground are as follows:
NSDate
to String
String
to NSDate
NSDate
NSDate
NSDate
instances from NSDateComponent
instancesThe best way to view this cheat sheet is by downloading the playground from GitHub, but here’s a straight copy-paste from the repo in case you just want to copy and paste it into a playground of your own from here:
Working with NSDate
, NSDateFormatter
, and NSDateComponents
can be a little convoluted, so I’ve created myself a cheat sheet that will be updated as I discover new tips and tricks in this realm.
The new cheat sheet can be found over at GitHub in the form of an Xcode Playground:
Topics that are included in the Playground are as follows:
NSDate
to String
String
to NSDate
NSDate
NSDate
NSDate
instances from NSDateComponent
instancesThe best way to view this cheat sheet is by downloading the playground from GitHub, but here’s a straight copy-paste from the repo in case you just want to copy and paste it into a playground of your own from here: