title: How to convert DateTime value into Filename in J2ME
body: <p>I am doing a Java mobile program using J2ME. </p>
  
  <p>I want to save date time field value into a Mysql, I am trying to convert the datetime field into a long and saving it in Mysql if its possible. </p>
  
  <p>In c# ToFileTime() method which does it, is there anything like that in J2ME??</p>
  
  <pre><code>  public DateField getDateField() {
          if (dateField == null) {
              // write pre-init user code here
              dateField = new DateField("dateField", DateField.DATE_TIME);
              dateField.setDate(new java.util.Date(System.currentTimeMillis()));
              // write post-init user code here
              long myFileTime = dateField.
          }
          return dateField;
      }
  </code></pre>