1.The First day Of Month:
static void FirstOfMonth(Args _args)
{
TransDate TransDate=today();
TransDate FirstOfMth;
;
FirstOfMth=mkdate(1,mthofyr(TransDate),year(TransDate));
info(date2str(FirstOfMth,123,2,2,2,2,4));
}
static void FirstOfMonth(Args _args)
{
TransDate TransDate=today();
TransDate FirstOfMth;
;
FirstOfMth=DateStartMth(TransDate);
info(date2str(FirstOfMth,123,2,2,2,2,4));
}
2.The Last day Of Month:
static void LastOfMonth(Args _args)
{
TransDate TransDate=today();
TransDate LastOfMth;
;
LastOfMth=endmth(TransDate);
info(date2str(LastOfMth,123,2,2,2,2,4));
}
No comments:
Post a Comment