Question: This must be a simple problem, but I can't get my head around it. I have a resizable title window. Inside I just want a VGroup to hold the contents of the form and an HGroup to have a few buttons at the bottom. Very standard stuff.

```
<!-- Content -->
<s:VGroup id="content" height="340" width="100%">
        ...more stuff in here...
</s:VGroup>

<!-- Buttons -->
<s:HGroup id="buttonGroup" width="100%"> 
    ...buttons in here...
</s:HGroup> 

```

Horizonal resizing works fine. However, I want it to behave such that when the TitleWindow is resized vertically that the buttons stay in the same place relative to the TitleWindow and the content VGroup is resized vertically. But I don't know what to set the height of the VGroup to?

Ideally it would be like this:

```
height="{this.parent.height - buttonGroup.height - top*

```

or something like that....

Answer: 
EKEvent's startDate property is declared as an NSDate but you are passing it an NSString. You need to parse the string into a NSDate first and then set the event date:

```
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"YYYY/MM/dd"];
event.startDate = [formatter dateFromString:dateField.text];

```
@Tim Dean was on the right track, but that initializer is only used to return OS 10.0 style date formatters and isn't even supported on iOS.

```
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"YYYY/MM/dd"];
event.startDate = [dateFormatter dateFromString:dateField.text];

```