title: How to get Month, Year and day values from picker?
body: <p>In codenameone I have a picker p1 and I want to get the values of Month, Year and day separately from the date given by the user, this code</p>
  
  <pre><code>String m1=Integer.toString(p1.getDate().getMonth());
  String d1=Integer.toString(p1.getDate().getDay());
  String y1=Integer.toString(p1.getDate().getYear());
  </code></pre>
  
  <p>generates an error when running even if there is no compilation error.</p>