Search This Blog

Wednesday, September 25, 2013

Remove the characters from string and convert to date to str in Axapta

Hi Folks,

strRem and date2str
Below job are to explain about how remove the characters from date and time in axapta

static void Job131(Args _args)
{
    str st;
    ;
    st = strRem(date2str(today(),213,2,0,2,0,4)+time2str(timenow(),                       TimeSeparator::Space,TimeFormat::Auto)," ");
    info(st);
}

Normally date and time will display like 09/25/2013 07:14:30 Am
By using date2str it will convert the date to str and again remove the character also .

O/P:09252013071430am

Thanks
Happy Daxing...

No comments:

Post a Comment