![]() |
#1 |
Участник
|
bojensen: Programming for Dynamics AX: Working with dates in x++
Источник: http://blogs.bojensen.eu/?p=4631
============== These are some good methods for working with the dates. today(); //Returns the current date date2Str(currentDate,321, // sequence of date parts 3=year 2=month 1=dayDateDay::Digits2,DateSeparator::Hyphen, // separator1DateMonth::Digits2,DateSeparator::Hyphen, // separator2DateYear::Digits4); str2Date("2011-06-30",321) // turns the string into a date mthofyr(today()) //returns the current month as a integer. year(today()) //returns the current year as a integer. dayofmth(today()) //returns the [...] Источник: http://blogs.bojensen.eu/?p=4631
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|