May 2011
1 post
1 tag
SQL DATEPART(dd, getdate()) vs VB.NET...
WARNING: THIS POST IS REALLY NERDY. While developing a calendar application, I ran into an issue that took hours to diagnose and nearly prompted me to wrap my car around a tree. The issue is this… I was taking a date from SQL, using the DATEPART function to return an integer value for the day of the week, then comparing that to the result of the DayOfWeek function in VB.NET. Here’s...
May 4th
1 note