utcDateTime dDate = DateTimeUtil::newDateTime( today(), 3600 * 24 - 1 );
info( datetime2str( dDate ) );
Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Showing posts with label ax - datetime. Show all posts
Showing posts with label ax - datetime. Show all posts
Monday, November 27, 2017
AX - How generate datetime with to 23:59:59 PM
Use this code (1 hour = 3600 seconds):
Tuesday, November 21, 2017
AX - How check if DateEdit control is empty
if ( EDates.dateValue() == dateNull() ) {
error( "Date value is empty." );
EDates.setFocus();
}
AX - How to get first and last day in month
Use this code:

int iMonth = 6; int iYear = 2017; date firstDate = mkDate( 1, iMonth, iYear ); date lastDate = endMth( firstDate ); info( date2str( firstDate, 321, DateDay::Digits2, DateSeparator::Hyphen, DateMonth::Digits2, DateSeparator::Hyphen, DateYear::Digits4 ) ); info( date2str( lastDate, 321, DateDay::Digits2, DateSeparator::Hyphen, DateMonth::Digits2, DateSeparator::Hyphen, DateYear::Digits4 ) );

Subscribe to:
Posts (Atom)
