Accepted Answer

varname1 = categorical(["2022/02/01";"2022/02/01"])
varname1 = 2×1 categorical array
2022/02/01 2022/02/01
varname12 = datetime(string(varname1),'InputFormat','yyyy/MM/dd')
varname12 = 2×1 datetime array
01-Feb-2022 01-Feb-2022

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!