 		segmentedControl.target = self
 		self.addSubview(segmentedControl)
 		
-		self.dateStyle = .medium
+		self.dateFormatter.dateStyle = .medium
 		
 		NotificationCenter.default.addObserver(self, selector: #selector(dayChanged(_:)), name: NSNotification.Name.NSCalendarDayChanged, object: nil)
 	}

		}
	}
	
	open var dateStyle: DateFormatter.Style {
		get {
			return dateFormatter.dateStyle

@IBDesignable
open class DateRangePickerView: NSControl, ExpandedDateRangePickerControllerDelegate, NSPopoverDelegate {
	fileprivate let segmentedControl: NSSegmentedControl
	open let dateFormatter = DateFormatter()
	fileprivate var dateRangePickerController: ExpandedDateRangePickerController?
	
	// MARK: - Date properties
