Navigation
Synopsis Print an input date using the given format string.
Function
  1. str printDate(datetime inputDate, str formatString)
  2. str printDate(datetime inputDate)
Usage import DateTime;
Examples
rascal>import DateTime;
ok
rascal>printDate(now());
str: "2014-10-28"
rascal>printDate(now(), "YYYYMMdd");
str: "20141028"
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.