HI to all...
I have posting date like - c05/06/07.
I am trying to export the date from the dataport.
I want to remove C while they export data.
The posting date must look like 05/06/07.
I request you to please share ur ideas..
Thank you..
JAYESH PATEL
0
Answers
Format the date field & delchr the result
PS When you export theis closed date the "c" actually appears?
http://www.BiloBeauty.com
http://www.autismspeaks.org
And i used DELCHAR to remove C from the date.
But I want to store value what i got in to DATE field again to export.
LIKE
DT - Text
DT := FORMAT(DATE);
DT := DELCHAR(DT,'=',C);
How i store STRING value in to DATE it's not possible
DATE := DT ---- NOt possible..
be'z the DATE is DATAPORT filed which is exported from the dataport.
Thank you...
http://www.mibuso.com/forum/viewtopic.p ... nvert+date
I'm not a codemaster but I think you could combine (not tested)
EVALUATE(DELCHAR(FORMAT(DATE),'=',C),varDate);
http://www.BiloBeauty.com
http://www.autismspeaks.org
I used that table and mention date fileds as DATAPORT filed.
So i must have to store the value which i got at end to store in to date filed.
I think then only they gonna export date in the format which i got...
Thank you
Not sure if that makes any sence but I hoped I helped a little 8)
http://www.BiloBeauty.com
http://www.autismspeaks.org
Boo - is boolean
Dt - Text
DAT - Date
DT := FORMAT("G/L Entry"."Posting Date");
DT := DELCHR(DT,'=','C');
Boo := EVALUATE(DAT,DT);
IF Boo = TRUE THEN
"G/L Entry"."Posting Date" := DAT;
Thank you for your support...
feel free to be descriptive with your Variables - it will help one day down the road when you review the dataport and go "what was I thinking"?
I'm pretty sure you can eliminate the boo
Boo - is boolean
Dt - Text
DAT - Date
http://www.BiloBeauty.com
http://www.autismspeaks.org
Not sure about that, from some of your posts lately, looks like you are becoming a developer. I always say that the best Navision programmers are always those that started out on the End User side having had to struggle with problematic code.
=D>
EVALUATE(cleanDATE,varDATE);
does that look better (still not tested) I'm sure on the first error message I'd figure it out [-o<
http://www.BiloBeauty.com
http://www.autismspeaks.org
Actually there are lots of ways to do this. I would want to address the issue that the user enters bad text, so would change it to:
I'm not really sure what you are trying to do but you should also check out the NORMALDATE and CLOSINGDATE functions.