help-octave
[Top][All Lists]
Advanced

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

Re: format datestr


From: Thomas D. Dean
Subject: Re: format datestr
Date: Sun, 17 Jun 2018 14:12:59 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 06/17/18 05:52, Luca Salardi wrote:
hi,
i try to code it :

ff=datestr ("23/12/2008", "dd/mm/yyyy")

but i see this error:

error: datevec: none of the standard formats match the DATE string

Help datestr is not clear on this.  Nor, is help datevec.

Your DATE is not in the correct format.

From help datevec,

A date vector is a row vector with six members, representing the
     year, month, day, hour, minute, and seconds respectively.

Your DATE string contains day, month, and year respectively.

You should use year, month, and day in the DATE string.

octave:41> ff=datestr ("2008/12/23", "dd/mm/yyyy")
ff = 23/12/2008


Tom Dean



reply via email to

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