Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Finance[ParseDate] - parse a string containing date information
Calling Sequence
ParseDate(date)
ParseDate(date, format)
Parameters
date
-
a string containing a date specification; date specification
format
deduce, default, or a string; (optional) date format
Description
The ParseDate command parses the string date assumed to contain date information according to the parsing specification given by the format string format. The date format can be any format specification as described in StringTools[ParseTime].
If the format string is missing, several standard date formats are tried. The first format to succeed will be used. The "standard" date formats are "%d-%b-%Y", "%d-%b-%y", "%d-%m-%Y", "%d-%m-%y", "%b-%d-%Y", and "%b-%d-%y".
The record returned by ParseDate contains slots with the following meanings and ranges of values:
monthDay
day of the month
1..31
month
month of the year
1..12
year
the year
0..9999
date format
deduce or string
Compatibility
The Finance[ParseDate] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Examples
You can change the default file format by setting the _Env_FinanceDateFormat environment variable.
By default, the deduced date format will be used.
See Also
Finance[AddHoliday], Finance[AdjustDate], Finance[Calendar], Finance[DayOfWeek], Finance[IsBusinessDay], Finance[IsEndOfMonth], Finance[IsHoliday], Finance[JoinBusinessDays], Finance[JoinHolidays], Finance[RemoveHoliday]
Download Help Document