Hi Folks,
In the below code when i enter 'T' in my input it returns 3/28/06 instead of todays date. It assumes T for Tuesday. idea how do i get to print Todays date.
w.OPEN('Enter todays date ##1#######');
w.INPUT(1,tdate);
MESSAGE('%1',tdate);
Regards
SB.
0
Comments
I saw this as well today filtering in object designer on t and it would change to tuesday. It stopped doing it now. So I don't know how this happened.
I would set tdate := today as default. That way they don't have to put anything in there.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Unfortunately 'tdate' is a user input and i cannot force it as today. The weird part is tdate is a variable of type 'Date' and i dont understand why it does not like 'T' and considers it as Tuesday instead of Today.
Regards
SB.
Note : txtDate has the data type of text.
I would actually report this to MS. It is definitely a bug.
Personally, I don't use dialogs for inputs. They have horrible user interface, and slow performance, in terms that if you have in middle of your routine, other people will be locked out.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!