Monday 20 October 2014

date2Str Function [AX 2012]



Converts the specified date to a string.

str date2Str(
    date date,
    int sequence,
    int day,
    int separator1,
    int month,
    int separator2,
    int year
    [, int flags = DateFlags::None])

Parameters

Parameter
Description
date
The date to convert.
sequence
A three digit number that indicates the sequence for the components of the date, 1 for day, 2 for month, and 3 for year.
day
DateDay enumeration value that indicates the format for the day component of the date.
separator1
DateSeparator enumeration value that indicates the separator to use between the first two components of the date.
month
DateMonth enumeration value that indicates the format for the month component of the date.
separator2
DateSeparator enumeration value that indicates the separator to use between the last two components of the date.
year
DateYear enumeration value that indicates the format for the year component of the date.
flags
DateFlags enumeration value that indicates whether the language settings on the local computer should be used to calculate the proper left-to-right or right-to-left sequence in the returned string.

Return Value

A string that represents the specified date.
static void Job2(Args _args)
{
    date currentDate = today();
    str s;
    int iEnum;
    ;
    s = date2Str
        (currentDate,
        321,
        DateDay::Digits2,

        DateSeparator::Hyphen, // separator1
        DateMonth::Digits2,
        DateSeparator::Hyphen, // separator2

        DateYear::Digits4
        );
    info("Today is:  " + s);
}
/** Example Infolog output
Message (12:36:21 pm)
Today is:  2009-01-13
**/

4 comments:

  1. Thank you very much for this post

    ReplyDelete
  2. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.Thank you for sharing wonderful information with us to get some idea about that content.

    oracle training in chennai

    oracle training institute in chennai

    oracle training in bangalore

    oracle training in hyderabad

    oracle training

    oracle online training

    hadoop training in chennai

    hadoop training in bangalore


    ReplyDelete
  3. Thanks for sharing this great information on Oracle PPM Cloud. Actually I was looking for the same information on internet for Oracle Project Portfolio Management (PPM) Cloud Tutorial and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about PPM Cloud by attending Oracle PPM Cloud Training .

    ReplyDelete