#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

	NSCalendar *cal = [[NSCalendar alloc]
					   initWithCalendarIdentifier:NSGregorianCalendar];
	
	NSDateComponents *comps = [[NSDateComponents alloc]init];
	[comps setYear:2010];
	[comps setMonth:4];
	[comps setDay:1];
	NSDate *date = [cal dateFromComponents:comps];
	
	NSLog(@"%@",date);
    [pool drain];
    return 0;
}
