It looks like you're new here. Sign in or register to get started.
myVar := '20091014'; EVALUATE(intDay,COPYSTR(myVar,7,2)); EVALUATE(intMonth,COPYSTR(myVar,5,2)); EVALUATE(intYear,COPYSTR(myVar,1,4)); myVarDate := DMY2DATE(intDay,intMonth,intYear);; MESSAGE(FORMAT(myVarDate,0,'<Year4><Month,2><Day,2>'));
andy76 wrote: MESSAGE(FORMAT(COPYSTR(lSingleLineFileText,91,8),0,'<Year4><Month,2><Day,2>')); where COPYSTR(lSingleLineFileText,91,8) i a Text of date in format YYYYMMDD
Comments
this is my code:
MESSAGE(FORMAT(COPYSTR(lSingleLineFileText,91,8),0,'<Year4><Month,2><Day,2>'));
where COPYSTR(lSingleLineFileText,91,8) i a Text of date in format YYYYMMDD and attach the error message.
Thank you
You answered your question yourself....
Have you tried MESSAGE(COPYSTR(lSingleLineFileText,91,8)) ??
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03