Hello all,
I want to display the day name with respect to the date selected, for that i used the below example. But when i run this job, its showing day name as"Thurs day" instead of "Monday". Could you please explain, why it is showing like that...!
public void sampledate()
{
DateOnhand d;
;
d = today();
info(strfmt("Date - %1",d));
info(strfmt("Day Name - %1",dayname(dayOfMth(d))));
}
*This post is locked for comments
I have the same question (0)