Home > By category > Scripts >Development Tools > DateConvert


  • Downloads: 
  • Views: 
  • Rating:

DateConvert: Simple but fast date conversion

DateConvert converts the DATESTR(0) format to a date vector or serial date number and backwards.

Matlab's DATENUM, DATEVEC and DATESTR accept a variety of inputs, but in consequence they are slow. If the input format is exactly known, the conversion can be much faster:
DATENUM('17-Oct-2009 11:08:23'): 2.97 sec
DateConvert('17-Oct-2009 11:08:23', 'number'): 0.039 sec
=> 1.3% (1000 loops, 1.5GHz Pentium-M, Matlab 7.7)

DateConvert does *not* validate the input date as Matlab's date functions:
DATEVEC('32-Feb-2008 25:62:63') replies [2008 3 4 2 2 7],
DateConvert('32-Feb-2008 25:61:67' , 'vector') replies [2008 2 32 25 61 67] !
So DateConvert is nearly trivial, but optimized for speed. I needed it for sorting 200'000 time stamps and reduced the time from 217 to 11 sec.

Please run the unit-test TestDateVec to check validity and speed.

Tested: Matlab 6.5, 7.7, 7.8, WinXP, 32bit.
Pure Matlab code, so compatibility to MacOS, Linux, 64 bit is expected.
English month names are needed.

Suggestions and question by email or in the comment section are very welcome.

See also: DateStr2Num (Jan Simon)

Free download from Shareware Connection - DateConvert converts the DATESTR(0) format to a date vector or serial date number and backwards

Publisher: Jan Simon | License: Shareware
Version: 1.0 | Size: 10 KB | Platform: Matlab, Scripts
Released Date: 11-06-2013 | Rating: 0 | Title: DateConvert

Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/25594/2/DateConvert.zip

More downloads from DateConvert publisher Jan Simon:

ScaleTime - ScaleTime - fast linear matrix interpolation

DateStr2Num - DATESTR2NUM - Fast conversion of DATESTR to DATENUM

FilterM - FilterM, FiltFiltM: Fast digital filter

strncmpr - Compare last N chars of strings or cell strings

Patch FILTFILT - If applied to a matrix, the function FILTFILT (Signal Processing Toolbox) calls itself recursively for each column.

DateConvert keywords:
DateConvert related downloads:

strncmpr - Compare last N chars of strings or cell strings

fRMField - fRMField: Remove field(s) from a struct - fast C-MEX

XolidoSign - XolidoSign is a Windows Application for electronically sign and/or timestamp documents on your computer and for smart verification of received files on your computer. All kind of documents, like PDF (native Signature), Fast and easy. Full safety.

Form1 - Single file customizable web form and form processor, with hidden email address.

Jumpstart-it Event Management Software - Great event administration software for Windows + Internet. Create online forms. Automatically send emails and letters (via MS Word). Book payments efficiently. Export your data to Excel, CSV, XML. Process registrations in a snap. Only US $99!

Shareware Connection periodically updates pricing and software information of 'DateConvert' from company source 'Jan Simon' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'DateConvert' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of DateConvert.

New Reviews

Panda Cloud Cleaner - PC security has become a tricky and complicated subject both for home users and network supervisors, with complexity and risk factors multiplying over the years. Using a single antivirus app may not be enough anymore. That explains why many users ...

Edius Pro - In the last few years, NLE video editor segment has become somewhat populated than earlier, with big names like Sony vying for attention with established behemoths like Adobe. However, Adobe’s move to subscription only model has deterred ...

Adobe SpeedGrade - Adobe has been a long time player in video editing and post production sector, with apps like Premier Pro and AfterEffects winning accolades and keeping customers hooked for several years. To cater to a niche section of the target users, it has ...

Avast Endpoint Protection Suite Plus - PC security has become a vital aspect of computing nowadays and business users face the heat more than home users. While installing and handling a standalone antivirus suite is neither tedious nor time consuming, the scenario is different in ...

AOMEI Partition Assistant Lite Edition - No matter whether you are a casual PC user or deal with a number of computers for professional needs, taking care of hardware components is a necessity. Among all hardware components used in laptop or desktop, hard disk is the most important one. ...

CyberGhost VPN - There are so many ways available to browse the web nowadays. You can use a plethora of devices and pick from various service providers to get online. However, tech savvy users resort to additional measures to access the internet without being ...

PhotoRescue PC EN - When you deal with computers and data, recovering deleted or lost data may become a necessity sometimes. The same thing can happen with digital images. When that happens, you need to use third party image recovery software. One such example is ...

Stellar Speedup Mac - While Macintosh computers are known for their stellar speed and multitasking prowess they also become subjected to pitfalls of usage. After prolonged use, junk files pile up and bits of installed apps remain scattered on the hard disk. These, ...

Corel Painter Lite - Corel’s graphics and illustration tools have been perennial favorites with millions of graphic designers and layout artists worldwide. While CorelDraw graphic suite is the company’s most popular app, Painter has also succeeded in ...

Adobe Media Encoder - Almost every PC user faces a situation where he or she needs to convert an audio or video file fast into a format of choice. There are several free and commercial apps, but the abundance of options can actually make selection difficult. If you ...

New Downloads

Member Directory Script

Add a member directory on your
website to create countless
member profiles. Show personal
info, contacts, skills, short

Cool Record Edit Deluxe

Cool Record Edit Deluxe can
record sound from tapes, LPs,
live performances, Internet
radio, TV, DVD, or any other
sound ...

Availability Booking

Availability Booking Calendar
is a multi-calendar booking
system that enables your site
users to reserve dates/nights

Gnome Helper

Gnome Helper is a little
administrator module that will
allow you to easily search
JSDE (Joomla Developers Search

uContext - Clickbank
In-Text Affiliate Links

uContext is a free service
that locates keywords in your
content and turns them into
affiliate links that take your


Provides linear and quadratic
interpolation methods for
functions defined on scattered
2D datasets.

Make_gui - automated GUI

Auto generated GUIs for models
or subsystems with real time

Accelerated Particle Swarm

This is an accelerated PSO
(APSO), developed by Xin-She
Yang in 2008

Area Conversion Calculator

Area Conversion Calculator
converts a types of area
measurement units to other
known units.


wikimarkup is a class to
automatically generate
latex/wiki/html markup for
matlab objects

Apply affine transforms to
graphic objects

The advantage of the function
compared to hgtransform
objects is that it operates
directly on the XData

ANNI - solver of a set of
non-linear equations

Let us suppose a set of
non-linear equations in the
form F(m) = d (m,d are
vectors, F is a vector
function of vector ...