Wrestling All Day With WebAPI, NewtonSoft and JSON Date Formats

image.png

  Half to document what I now believe and half to share my findings, I’m going to do a short post that shows the implications of changing the DateTimeKind parameter of a DateTime field in a WebAPI controller.  That is, a WebAPI controller can return it’s results as JSON and the data that is DateTime gets converted based on some rules that for me were not clear. First, let me state my conclusion (for those with short attention spans), then I’ll show the data and include the visual studio 2012 project I used to make this. DateTimeKind.Local 013-10-05T13:00:00-07:00 (Has Timezone) DateTimeKind.Utc 2013-10-05T13:00:00Z (Has Z) DateTimeKind.Unspecifed … Continue Reading

Last Nights Meetup At Sencha HQ In RWC Excellent!

InlineRepresentationd5033d0a3e474c7796432eb69875716a.jpg

Last nights meetup at Sencha Headquarters in Redwood City with Jacky Nguyen presenting was excellent, and as usual very fun.  Jacky talked about tons of performance stuff related to the holy grail of 60 frames per second rendering and mobile sweetness. Sadly, I learned that my ping-pong skills are in total decay. Having slide a very far way from Dorm 5 champion at college, it feels like I’ve returned to rank beginner.  Very sad. http://www.meetup.com/The-San-Francisco-ExtJS-Meetup-Group/events/114540882/ Most of the usual suspects were there. View Full Album … Continue Reading

Speaking Wednesday, February 27 About SPA apps and WebAPI in Mountain View Microsoft Office

image.png

  ASP.NET’s WebAPI and SPA’s (single page apps) are all the rage! In our brave new world, many web apps are now Single Page Applications written in JavaScript. Basically, this means that instead of having lots of static and/or dynamic pages generating lots of HTML, we now often have an html page that has just a few lines. Those lines would be just some basic header files, a css file included and a couple JavaScript include files. There are several JavaScript frameworks that support this scenario: Sencha’s SenchaTouch and ExtJS, as well as Dojo, Yahoo’s YUI and others immediately come to mind. In this presentation, we will focus on what the back end ASP.NET server can look like to support these kind of applications, and … Continue Reading

JavaScript, Go With the Flow!

As a technologist gluten, I probably spend too much time on different technologies and not enough time on any one particular one.  It does find me often frustrated with seemingly basic things that should take little time to solve.  Recently, a friend sent me a quote which sadly applies to me too much. To be successful as a programmer, you, first and foremost, have to be a nerd.  You were probably born that way, but in any case, you already know if you are.  You are the kind of person who can stare at a screen for 14 hours puzzling over why the damn call to xref = malloc(len); is not accompanied by the appropriate call to free(xref); about 1 out of 100,000 times, and that’s why the frigin fuel injector hangs up on … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: