# ftsbound

Start and end dates

`ftsbound` is not recommended. Use `timetable` instead. For more information, see Convert Financial Time Series Objects fints to Timetables.

## Syntax

``datesbound = ftsbound(tsobj)``
``datesbound = ftsbound(tsobj,dateform)``

## Description

example

````datesbound = ftsbound(tsobj)` returns the start and end dates contained in `tsobj` as serial dates in the column matrix `datesbound`. The first row in `datesbound` corresponds to the start date, and the second corresponds to the end date. `ftsbound` returns the start and end dates of a financial time series object. If the object contains time-of-day data, `ftsbound` also returns the starting time on the first date and the ending time on the last date.```

example

````datesbound = ftsbound(tsobj,dateform)` returns the starting and ending dates contained in the object, `tsobj`, as date character vectors in the column matrix, `datesbound`. The first row in `datesbound` corresponds to the start date, and the second corresponds to the end date. The `dateform` argument controls the format of the output dates. ```

## Examples

collapse all

1. Create a `fints` object.

`dates_and_times = (now:now+5)'`
```dates_and_times = 1.0e+05 * 7.3840 7.3840 7.3840 7.3841 7.3841 7.3841 ```
` tsobj = fints(dates_and_times, randn(6,1))`
```Warning: FINTS is not recommended. Use TIMETABLE instead. For more information, see Convert Financial Time Series Objects (fints) to Timetables. > In fints (line 169) ```
```tsobj = desc: (none) freq: Unknown (0) {'dates: (6)'} {'times: (6)'} {'series1: (6)'} {'03-Sep-2021'} {'17:10' } {[ 1.4193]} {'04-Sep-2021'} {'17:10' } {[ 0.2916]} {'05-Sep-2021'} {'17:10' } {[ 0.1978]} {'06-Sep-2021'} {'17:10' } {[ 1.5877]} {'07-Sep-2021'} {'17:10' } {[ -0.8045]} {'08-Sep-2021'} {'17:10' } {[ 0.6966]}```
2. Obtain the start and end dates using `ftsbound`.

`datesbound = ftsbound(tsobj)`
```Warning: FINTS is not recommended. Use TIMETABLE instead. For more information, see Convert Financial Time Series Objects (fints) to Timetables. > In fints/ftsbound (line 28) datesbound = 1.0e+05 * 7.3840 7.3841```

## Input Arguments

collapse all

Financial time series object, specified as a `fints` object.

Data Types: `object`

Format of a date character vector, specified as an integer representing the format of a date character vector. See `datestr` for a description of these formats.

Data Types: `double`

## Output Arguments

collapse all

Start and end dates contained in `tsobj`, returned as a column matrix. The first row in `datesbound` corresponds to the start date, and the second corresponds to the end date. The `dateform` argument controls the format of the output dates.

## Version History

Introduced before R2006a