- Jan 8, 2006
- 836
- 0
- 0
Code:
<cfset period = DateFormat(CreateDate(currentYear, currentMonth, 1), "yy-mm")>
this should return period to 12-01 ... its the current year and month prior to the current month.
i could so something like this and combine them but figured there was better way.
Code:
int month = DateTime.Today.Month;
int year = DateTime.Today.Year;
and this way would not return 2 digits for single digit months.
Last edited:
