It looks like you're new here. Sign in or register to get started.
MyDate.SETRANGE("Period Type",MyDate."Period Type"::Date); MyDate.SETRANGE("Period Start",TODAY); MyDate.FINDFIRST; MESSAGE('Today is a ' + MyDate."Period Name");
DenSter wrote: That returns a number, how's that going to tell you that it's a tuesday?
MyWeekDay := DATE2DWY(MyDate,1); AnyDate.SETRANGE("Period Type",MyDate."Period Type"::Date); MyDate.SETRANGE("Period No.",MyWeekDay); MyDate.FINDFIRST; MESSAGE('Today is a ' + MyDate."Period Name");
Answers
RIS Plus, LLC
DATE2DWY works fine!
Thanks for your help!
Darren
RIS Plus, LLC
Easy:
\:D/
WeekDay := FORMAT("YOUR DATE",0,'<Weekday Text>');
8)
http://www.BiloBeauty.com
http://www.autismspeaks.org