**Inheritance:**
java.lang.Object, com.aspose.pdf.artifacts.pagination.DateComponent

```
public class DateComponent extends Object
```

Represents a base class for date components with a format attribute.

## Constructors

| Constructor | Description |
| --- | --- |
| [DateComponent](#DateComponent--) |  |

## Methods

| Method | Description |
| --- | --- |
| [getFormat](#getFormat--) | Gets or sets the format for the date component. |
| [getFormat](#getFormat-char-) | Returns a string composed of a specified character repeated based on the format. |
| [setFormat](#setFormat-int-) | Gets or sets the format for the date component. |

### DateComponent {#DateComponent--}
```
public DateComponent()
```



### getFormat {#getFormat--}
```
public final int getFormat()
```

Gets or sets the format for the date component.

**Returns:**
int value

### getFormat {#getFormat-char-}
```
public final String getFormat(char ch)
```

Returns a string composed of a specified character repeated based on the format.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| ch |  | The character to repeat. |

**Returns:**
A string consisting of the character repeated.

### setFormat {#setFormat-int-}
```
public final void setFormat(int value)
```

Gets or sets the format for the date component.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | int value |
