Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		- 
				
				The only reason I see is that they were trying to get it to only have monthly precision. Hence, first day of the month being the name of the variable
 - 
				
				@iam13islucky Yeah, I'm pretty sure it's just some previous messy refactor or something. I could look into the version control history but I don't know if I care that much. But it's just... very silly.
 - 
				
				Ok, I looked into the history because who doesn't love a good mystery? It's the handiwork of the coworker I suspected. The Description of the checkin is "make calendar month name work with xAxis"
var rawValue = record.GetAttributeValue<DateTime>(_calendarDataTimeAttribute);
- var dateFirstDayOfMonth = new DateTime(rawValue.Year, rawValue.Month, 1);
+ var rawValue = record.GetAttributeValue<DateTime>(_calendarDataTimeAttribute);
+ var rawDate = rawValue.ToString("MMMM-yyyy");
+ var dateFirstDayOfMonth = Convert.ToDateTime(rawDate);
+ return new ValueResult(record, record, dateFirstDayOfMonth.ToMonthName() + " " + dateFirstDayOfMonth.Year).AsList(); 
Related Rants

when your code is a mess but everything work out in the end
When you keep getting +1s on a rant you posted a month ago.
Go big or go home.
Get a DateTime. Convert to a string. Convert back to a DateTime. Use that DateTime to build a string.
WHY.
(it's red because I refactored it; snipped copied from our version control)
undefined
rant
why
silly
coworkers