CFDateFormatter Reference

## Detailed Description

## Typedefs

typedef struct __CFDateFormatter * | CFDateFormatterRef

## Enumerations

enum | CFDateFormatterStyle { kCFDateFormatterNoStyle = 0 , kCFDateFormatterShortStyle = 1 , kCFDateFormatterMediumStyle = 2 , kCFDateFormatterLongStyle = 3 , kCFDateFormatterFullStyle = 4 }

## Constants

const CFStringRef | kCFDateFormatterIsLenient
const CFStringRef | kCFDateFormatterTimeZone
const CFStringRef | kCFDateFormatterCalendarName
const CFStringRef | kCFDateFormatterDefaultFormat
const CFStringRef | kCFDateFormatterTwoDigitStartDate
const CFStringRef | kCFDateFormatterDefaultDate
const CFStringRef | kCFDateFormatterCalendar
const CFStringRef | kCFDateFormatterEraSymbols
const CFStringRef | kCFDateFormatterMonthSymbols
const CFStringRef | kCFDateFormatterShortMonthSymbols
const CFStringRef | kCFDateFormatterWeekdaySymbols
const CFStringRef | kCFDateFormatterShortWeekdaySymbols
const CFStringRef | kCFDateFormatterAMSymbol
const CFStringRef | kCFDateFormatterPMSymbol
const CFStringRef | kCFDateFormatterLongEraSymbols
const CFStringRef | kCFDateFormatterVeryShortMonthSymbols
const CFStringRef | kCFDateFormatterStandaloneMonthSymbols
const CFStringRef | kCFDateFormatterShortStandaloneMonthSymbols
const CFStringRef | kCFDateFormatterVeryShortStandaloneMonthSymbols
const CFStringRef | kCFDateFormatterVeryShortWeekdaySymbols
const CFStringRef | kCFDateFormatterStandaloneWeekdaySymbols
const CFStringRef | kCFDateFormatterShortStandaloneWeekdaySymbols
const CFStringRef | kCFDateFormatterVeryShortStandaloneWeekdaySymbols
const CFStringRef | kCFDateFormatterQuarterSymbols
const CFStringRef | kCFDateFormatterShortQuarterSymbols
const CFStringRef | kCFDateFormatterStandaloneQuarterSymbols
const CFStringRef | kCFDateFormatterShortStandaloneQuarterSymbols
const CFStringRef | kCFDateFormatterGregorianStartDate

## Creating a Date Formatter

CFDateFormatterRef | CFDateFormatterCreate (CFAllocatorRef alloc, CFLocaleRef locale, CFDateFormatterStyle dateStyle, CFDateFormatterStyle timeStyle)

## Configuring a Date Formatter

void | CFDateFormatterSetFormat (CFDateFormatterRef fmt, CFStringRef formatString)
void | CFDateFormatterSetProperty (CFDateFormatterRef fmt, CFStringRef key, CFTypeRef value)

## Parsing Strings

CFDateRef | CFDateFormatterCreateDateFromString (CFAllocatorRef alloc, CFDateFormatterRef fmt, CFStringRef string, CFRange *rangep)
Boolean | CFDateFormatterGetAbsoluteTimeFromString (CFDateFormatterRef fmt, CFStringRef string, CFRange *rangep, CFAbsoluteTime *atp)

## Creating Strings From Data

CFStringRef | CFDateFormatterCreateStringWithAbsoluteTime (CFAllocatorRef alloc, CFDateFormatterRef fmt, CFAbsoluteTime at)
CFStringRef | CFDateFormatterCreateStringWithDate (CFAllocatorRef alloc, CFDateFormatterRef fmt, CFDateRef date)
CFStringRef | CFDateFormatterCreateDateFormatFromTemplate (CFAllocatorRef alloc, CFStringRef templ, CFOptionFlags options, CFLocaleRef locale)

## Getting Information About a Date Formatter

CFTypeRef | CFDateFormatterCopyProperty (CFDateFormatterRef fmt, CFStringRef key)
CFDateFormatterStyle | CFDateFormatterGetDateStyle (CFDateFormatterRef fmt)
CFStringRef | CFDateFormatterGetFormat (CFDateFormatterRef fmt)
CFLocaleRef | CFDateFormatterGetLocale (CFDateFormatterRef fmt)
CFDateFormatterStyle | CFDateFormatterGetTimeStyle (CFDateFormatterRef fmt)

## Getting the CFDateFormatter Type ID

CFTypeID | CFDateFormatterGetTypeID (void)