Converts the receiver to an NSCalendarDate object with a given format string and time zone.
Original signature is '- (NSCalendarDate *)dateWithCalendarFormat:(NSString *)formatString timeZone:(NSTimeZone *)timeZone'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual IntPtr DateWithCalendarFormatTimeZone( NSString formatString, NSTimeZone timeZone )
Public Overridable Function DateWithCalendarFormatTimeZone ( _ formatString As NSString, _ timeZone As NSTimeZone _ ) As IntPtr
public: virtual IntPtr DateWithCalendarFormatTimeZone( NSString^ formatString, NSTimeZone^ timeZone )
Parameters
- formatString (NSString)
- The format for the returned string (see Converting Dates to Strings for a discussion of how to create the format string). Pass nil to use the default format string, “%Y-%m-%d %H:%M:%S %z” (this conforms to the international format YYYY-MM-DD HH:MM:SS ±HHMM.)
- timeZone (NSTimeZone)
- The time zone for the new calendar date. Pass nil to use the default time zone—specific to the current locale.
Return Value
A new NSCalendarDate object bound to formatString and the time zone timeZone.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)