DAX Blog

Tuesday, July 22, 2008

How can I validat the date

static void validatedate(Args _args)
{
int num1,num2;
str datevar;
date date1;
datevar = "31.4.2007";

date1 = str2date(datevar,123);
print date1;
numbr1 = str2int(substr(datevar,0,2));
numbr2 = dayofmth(date1);
if (num1 > num2)
print "invalid date";
}
Posted by Avnish
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Home
Subscribe to: Post Comments (Atom)

Pages

  • Home
  • Ax-2009 development

AX Blogs..

  • Dilip's blog on DYNAMICS AX
  • axaptafreak
  • Axaptapedia
  • Daxguy
  • Fredshen
  • kashperuk
  • khue.spaces

Search This Blog

About Me

My photo
Avnish
Delhi, New Delhi, India
AX developer and consultant since 2005. Microsoft Certified Professional.
View my complete profile

Blog Archive

  • ►  2015 (1)
    • ►  July 2015 (1)
  • ►  2014 (11)
    • ►  July 2014 (2)
    • ►  June 2014 (4)
    • ►  January 2014 (5)
  • ►  2010 (7)
    • ►  October 2010 (7)
  • ►  2009 (2)
    • ►  May 2009 (1)
    • ►  April 2009 (1)
  • ▼  2008 (11)
    • ►  November 2008 (1)
    • ►  August 2008 (2)
    • ▼  July 2008 (8)
      • GRC: Big Thing in Dynamics AX 2009 RTM
      • STEPS BEFORE ERP IMPLEMENTATION:-
      • difference between call by value and call by refer...
      • Unbalanced TTSBEGIN/TTSCOMMIT
      • Open web pages from X++ code or Run External Appli...
      • Reverse Engineering Microsoft Dynamics AX
      • New Layers in Dynamics AX 2009
      • How can I validat the date
Simple theme. Powered by Blogger.