Dear All,I have a date column where i need to display as below
Today() = 31-07-2018
to be displayed : 201807 ( year +month)
Is it possible to do like the aobve,
Thanks
Vamsa
Dear All,I have a date column where i need to display as below
Today() = 31-07-2018
to be displayed : 201807 ( year +month)
Is it possible to do like the aobve,
Thanks
Vamsa
You can use Year and mthOfYear functions. Use strFmt to put them in required format.
where u want 2 display date tell me .
static void test (Args _args)
{
int i;
str k;
i = mthofyr(today());
k= mthname(i);
info(strfmt("%1,%2",i,k));
}
Hi
Thanks for the response. Output shows the following:
int i;
int k;
i = year(today());
k= mthOfYr(today());
info(strfmt("%1,%2",i,k));
O/P:
2018.8
expected output to be 201808
Thanks
info(strfmt("%1%2",i, num2Str0(k, 2)));
Thanks a lot