Skip to content

Instantly share code, notes, and snippets.

View adamsp's full-sized avatar

Adam Speakman adamsp

View GitHub Profile
@adamsp
adamsp / WCFDateTimeParser.java
Last active December 25, 2015 04:08
WCF services supply Dates over JSON in a strange format. This method takes a WCF-formatted Date string and parses it into a JodaTime DateTime object.
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
public class WCFDateTimeParser {
/**
* <p>WCF services supply Dates over JSON in a strange format. This method
* takes a WCF-formatted Date string and parses it into a JodaTime DateTime
* object. Assumes valid input matching a format described below.</p>
*