Navigation
Synopsis Parse an input date given as a string using the given format string.
Function datetime parseDate(str inputDate, str formatString)
Usage import DateTime;
Examples
rascal>import DateTime;
ok
rascal>parseDate("2011-12-23", "yyyy-MM-dd");
datetime: 2011-12-23
rascal>parseDate("20111223", "yyyyMMdd");
datetime: 2011-12-23
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.