Hi....
These are some of the functions,from where we can get the day or month or year from the date...
Here is the below example....
static void date_Functions(Args _args)
{
Transdate d;
;
d = today();
info(strfmt("Date - %1",d));
//Gets the month for the given date...
info(strfmt("Month - %1",mthofYr(d)));
//Gets the month name from the given date...
info(strfmt("Month Name - %1",mthname(mthofYr(d))));
//Gets the day for the given date...
info(strfmt("Day - %1",dayOfMth(d)));
//Gets the day name from the given date...
info(strfmt("Day Name - %1",dayname(dayOfMth(d))));
//Gets the year for the given date...
info(strfmt("Year - %1",year(d)));
//Gets the current weekday number from the date...
info(strfmt("Weekday number - %1",dayOfwk(d)));
//Gets the day of the year from the given date...
info(strfmt("Day of year - %1",dayOfyr(d)));
//Gets the week of the year from the given date...
info(strfmt("Week of the year - %1",wkofyr(d)));
}
These are some of the functions,from where we can get the day or month or year from the date...
Here is the below example....
static void date_Functions(Args _args)
{
Transdate d;
;
d = today();
info(strfmt("Date - %1",d));
//Gets the month for the given date...
info(strfmt("Month - %1",mthofYr(d)));
//Gets the month name from the given date...
info(strfmt("Month Name - %1",mthname(mthofYr(d))));
//Gets the day for the given date...
info(strfmt("Day - %1",dayOfMth(d)));
//Gets the day name from the given date...
info(strfmt("Day Name - %1",dayname(dayOfMth(d))));
//Gets the year for the given date...
info(strfmt("Year - %1",year(d)));
//Gets the current weekday number from the date...
info(strfmt("Weekday number - %1",dayOfwk(d)));
//Gets the day of the year from the given date...
info(strfmt("Day of year - %1",dayOfyr(d)));
//Gets the week of the year from the given date...
info(strfmt("Week of the year - %1",wkofyr(d)));
}
There is some change in this Info statement, the statement which you have written in the blog for the day is showing the wring day
ReplyDelete//Gets the day name from the given date...
info(strfmt("Day Name - %1",dayname(dayOfMth(d))));
Correct InfoStatement is
//Gets the day name from the given date...
info(strfmt("Day Name - %1",dayname(dayOfwk(d))));
Thanks PavanKumar, I was wondering what was wrong with my statement.
ReplyDeleteKanarya Adaları yurtdışı kargo
ReplyDeleteKanada yurtdışı kargo
Kamerun yurtdışı kargo
Kamboçya yurtdışı kargo
Jersey yurtdışı kargo
N83RX