Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!k17g2000vbn.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Help to extract data from string for datetick function
Date: Mon, 6 Jun 2011 00:16:25 -0700 (PDT)
Organization: http://groups.google.com
Lines: 21
Message-ID: <e243e5ce-48e6-4fa1-a8d4-1e11b6cf5bcd@k17g2000vbn.googlegroups.com>
References: <ishtu4$2vu$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: 195.18.217.10
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1307344585 19835 127.0.0.1 (6 Jun 2011 07:16:25 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 6 Jun 2011 07:16:25 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: k17g2000vbn.googlegroups.com; posting-host=195.18.217.10; posting-account=VAp5gAkAAAAmkCze5hvZtMeedpZWNthI
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: ARLEUHCNK
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
 2.0.50727; InfoPath.2; MS-RTC LM 8; .NET CLR 1.1.4322),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:730385

On Jun 6, 9:00 am, "Muhammad " <irsh...@hotmail.com> wrote:
> Dear all
>
> I need to extract data from string to use it in datetick function, i have data in the following form
>
> '2009-02-05 07:15:48.545'
>
> I have to make the data compatible with the following format of datetick
>
> ''yyyy-mm-dd HH:MM:SS'
>
> so in order to make data compatible with datetick I need to remove  '.545' from the data, please help me in this regard.
>
> Irshan

doc datenum
doc datestr

Rune