NSDate

Undocumented

  • Initialize a date object using the given string.

    Declaration

    Swift

    public convenience init(dateString:String)

    Parameters

    dateString

    the string that will be used to instantiate the date object. The string is expected to be in the format ‘yyyy-MM-dd hh:mm:ss a’.

    Return Value

    the NSDate object.

  • Returns a string of the date object using the format ‘yyyy-MM-dd hh:mm:ss a’.

    Declaration

    Swift

    public func toString() -> String

    Return Value

    a formatted string object.