title: converting JodaTime to Long Integer format
body: <p>hello I had date format which i use in a API call in Long integer format. That API call does not support date in any other format and it should as follows.</p>
  
  <pre><code>public static long start_date=20140401101010L;
      public static long end_date=20140430101010L;
  </code></pre>
  
  <p>I had to make some changes in that date, so i changed that date into JodaDate format as like the below code. </p>
  
  <pre><code>DateTime startDateTime = formatter.parseDateTime(String.valueOf(start_date)); 
  DateTime endDateTime = formatter.parseDateTime(String.valueOf(end_date));
  </code></pre>
  
  <p>This is how we convert normal variable to DateTime object. so how can i do the opposite.? If i have a JodaTime 2014-04-30T10:10:10.000+05:30 and i want to change that time to this format which is as a Long integer. 20140430101010L . I want to do this because i am doing an API program and the url parameter has time and which support only the above format and not in JodaTime.</p>