The 1C:Enterprise developers forum
Hello!I have a problem with date to string coversion;
y = year(CurrentDate); z = String(y);
I found this way;
ch = Left(Right(z,4),1);
Try to use this:y = year(CurrentDate);z = Format(y, "NG=");
Dear eyup yilmaz,Sergey provided an appropriate example for you as using the Format() function is a correct way to get date and time in the format you need.Best regards,Vladimir Gurov