Friday, 30 October 2009

Get first day of month - CR

local numbervar thismonth := Month(CurrentDate);
local numbervar thisyear := Year(CurrentDate);
local datevar startday;


startday := Date(thisyear, thismonth, 1); //get the first day of the month

3 comments:

Anonymous said...

Saved my day! worked like a charm thank you

Dom Horton said...

no worries!

Anonymous said...

great thanks