I am trying to convert date time in Crystal report. My date is 12 2017 and i want to convert it into december 2017 but it gives me error <pre>MonthName (val(left({Table1.MonthYear},2))) + ' - ' + right({Table1.MonthYear},4)
<pre>MonthName (val(left({Table1.MonthYear},2))) + ' - ' + right({Table1.MonthYear},4)
ToText(CDate({Table1.MonthYear}),"MMM yyyy");
local datevar a :=CDate(Left({Table1.MonthYear},2) +' - ' + Right({Table1.MonthYear},4)); local numbervar y := Year (a); local numbervar d := Month (a); Date (d, y);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)