help-octave
[Top][All Lists]
Advanced

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

Re: format datestr


From: Dmitri A. Sergatskov
Subject: Re: format datestr
Date: Sun, 17 Jun 2018 13:43:21 -0500



On Sun, Jun 17, 2018 at 7:52 AM, Luca Salardi <address@hidden> 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


​You want to use datenum():

octave:9> ff=datenum ("23/12/2008", "dd/mm/yyyy")
ff =  733765
octave:10> str=datestr (ff, "dd/mm/yyyy")
str = 23/12/2008

​Dmitri.
--




reply via email to

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