How to calculate date length between 2 dates
Ältere Kommentare anzeigen
For the below data, I would like to count the date length between Conf.Time with Trade date
In excel, you can easily do it by using function: weekday(trade date, conftime, holiday), how do you do this in Matlab?
1 Kommentar
Adam Danz
am 1 Jul. 2020
- Are you rounding to the earliest day? For example, should 12/1/2019 23:59:59 be treated as 12/1/2019 00:00:00 ?
- Just to be clear, from the values you shared, the number of days should be [1; 0; 1; 0; 0; 0] ?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Calendar finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!