title: RFC822 Timezone Parsing in Java
body: <p>I have a JS date that is being converted by Dojo into RFC822 format.  The function call -
  dojo.date.toRfc3339(jsDate), generates the following date - 2007-02-26T20:15:00+02:00.</p>
  
  <p>I have an application that uses a Java date SimpleDateFormat to parse in the dates generated above.  I am having problems parsing this date format due to the timezone.  I have attempted to use</p>
  
  <p>yyyy-mm-DD'T'hh:mm:ssZ</p>
  
  <p>This fails as the 'Z' for timezone doesn't expect a ':' character.  Does anyone know how I would specify a pattern to handle a RFC822 date with the ':'?</p>
  
  <p>revision:</p>
  
  <p>Thanks for correctly interpreting what I am trying to do :) I was meant to say the date is generating in RFC3339 and I needed RFC822. Looks like I will have to override the JavaScript. I was hoping that I wouldn't have to do that and could specify a date format pattern without having to modify any Java Code as the date format is simply injected into a Spring bean of an application.</p>
  
  <p>Just for completeness, is there a way to specify in a date format expression to ignore characters in the sequence (without doing String manipulation/replacement)? In this case I'd be saying ignore any ':' or just ignore the timezone all together?</p>