# GC.Spread.Sheets.Fill.FillDateUnit

## Content

# Enumeration: FillDateUnit

[Sheets](../modules/GC.Spread.Sheets).[Fill](../modules/GC.Spread.Sheets.Fill).FillDateUnit

Represents the date fill unit.

**`example`**
```javascript
//This example uses the FillDateUnit enumeration.
spread.options.allowUserDragFill = true;
activeSheet.setValue(0, 0, new Date(2011, 1, 1));
activeSheet.setValue(0, 1, new Date(2011, 2, 9));
activeSheet.setValue(0, 2, 5);
activeSheet.setValue(0, 3, 10);
activeSheet.setValue(0, 4, 1);

var start = new GC.Spread.Sheets.Range(0, 0, 1, 1);
var r = new GC.Spread.Sheets.Range(0, 0, 4, 1);
activeSheet.fillAuto(start, r, {
    fillType: GC.Spread.Sheets.Fill.FillType.date,
    series: GC.Spread.Sheets.Fill.FillSeries.column,
    fillDirection: GC.Spread.Sheets.Fill.FillDirection.down,
    unit: GC.Spread.Sheets.Fill.FillDateUnit.day,
    step: 1,
    stop: new Date(2011, 2, 11)
});

start = new GC.Spread.Sheets.Range(0, 1, 1, 1);
var r2 = new GC.Spread.Sheets.Range(0, 1, 4, 1);
activeSheet.fillAuto(start, r2, {
     fillType: GC.Spread.Sheets.Fill.FillType.date,
     series: GC.Spread.Sheets.Fill.FillSeries.column,
     fillDirection:GC.Spread.Sheets.Fill.FillDirection.down,
     unit: GC.Spread.Sheets.Fill.FillDateUnit.day,
     step: 1,
     stop: new Date(2011, 2, 11)
});
```

## Table of contents

### Enumeration members

- [day](GC.Spread.Sheets.Fill.FillDateUnit#day)
- [month](GC.Spread.Sheets.Fill.FillDateUnit#month)
- [weekday](GC.Spread.Sheets.Fill.FillDateUnit#weekday)
- [year](GC.Spread.Sheets.Fill.FillDateUnit#year)

## Enumeration members

### <a id="day" name="day"></a> day

• **day** = `0`

Sets the date fill unit to day.

___

### <a id="month" name="month"></a> month

• **month** = `2`

Sets the date fill unit to month.

___

### <a id="weekday" name="weekday"></a> weekday

• **weekday** = `1`

Sets the date fill unit to weekday.

___

### <a id="year" name="year"></a> year

• **year** = `3`

Sets the date fill unit to year.
