Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: days in a month
month=2 year=2052 ;make ymd string mymonth=strcat(year,":",month,":01:00:00:00") nextmonth=TimeAdd(mymonth,"00:01:00:00:00:00") daze=TimeDiffDays(nextmonth,mymonth) message("",daze)
today=TimeYmdHms() ;today="1998:12:31:00:00:00" ; for testing thismonth=ItemExtract(2,today,":") tomorrow=TimeAdd(today,"0000:00:01:00:00:00") nextmonth=ItemExtract(2,tomorrow,":") if thismonth!=nextmonth Message(today,"Is the last day of this month") else Message(today,"NOT last day of month") endif exit
Article ID: W13871
Filename: How Many Days in a Month.txt
File Created: 1999:04:15:16:56:56
Last Updated: 1999:04:15:16:56:56