Write a class `DateFormatter` that has three private attributes:
Write a class `DateFormatter` that has three private attributes:
- `date`: the date to be formatted (as a date).
- `date`: the date to be formatted (as a UNIX time in seconds).
- `format`: the format to convert the date to.
- `format`: the format to convert the date to.
- `formattedDate`: contains the date converted into the given format.
- `formattedDate`: contains the date converted into the given format.
Create getters for all the attributes and setters for `date` and `format`. The conversion should happen when you set the `format` or the `date`. If the `format` is not correct, the conversion shouldn't happen. Additionally, create methods to output the date in the specified `format`, and constructors with only the `date`, with `date` and `format`, and a default constructor.
Create getters for all the attributes and setters for `date` and `format`. The conversion should happen when you set the `format` or the `date`. If the `format` is not correct, the conversion shouldn't happen. Additionally, create methods to output the date in the specified `format`, and constructors with only the `date`, with `date` and `format`, and a default constructor.
#### The accepted date formats are:
The default date is the current date, and the format as follow `DD/MM/YYYY`.
- `DD/MM/YYYY`
> Using standart library to convert UNIX time to date is allowed