Month wrong when using date filter

Hey, I just noticed that, although in the bit of code below we have that the date is 01-08-2013, when we use the date filter, it gets output as September for some reason? Does anyone know why?

name: ‘Program or be Programmed’,
price: 8,
pubdate: new Date(‘2013’, ‘08’, ‘01’),
cover: ‘img/program-or-be-programmed.jpg’

Date is in the format Date (‘year’, ‘month’, ‘day’)
Also note that the month is zero-based - so January = 0, February = 1, etc

1 Like