[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: datestr problem

From: mmuetzel
Subject: Re: datestr problem
Date: Wed, 21 Nov 2018 11:53:30 -0600 (CST)

If you call datestr with a string as input argument, it is passed to datevec
which in turn uses some heuristics to guess the date format. This could
probably be better documented in the help string for datestr.

If you know which date format you are using in the input, it is better (and
faster) to pass that:
datestr(datenum(c1{1}, 'dd/mm/yy'), 20)
datestr(datenum(c1{1}, 'yy/mm/dd'), 20)
or whatever your input date format is...


Sent from:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]