JDBC and JavaMail: Date type transformation
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alex_Brown
Posted On:   Tuesday, November 6, 2001 08:07 AM

I need to rewrite all emails from the IMAP server to the Database under MySql server. I would like to write every field from the INBOX (from, to, subject, received date, flags, body) to the corresponding field in the Database. The data type has a different format for java.util and java.sql packages. Moreover the compilation of code which contain the java.util and java.sql packages follows by the compillation error if there is some definition of Date type. (I must refer directly like "java.util.Date _variable" ) How to convert the Date which was received by JavaMail to the format which is correspond for the MySQL Date format like YYYY-MM-DD ?    More>>

I need to rewrite all emails from the IMAP server to the Database under MySql server. I would like to write every field from the INBOX (from, to, subject, received date, flags, body) to the corresponding field in the Database.

The data type has a different format
for java.util and java.sql packages.
Moreover the compilation of code which
contain the java.util and java.sql packages follows by the compillation error if there is some definition of
Date type. (I must refer directly
like "java.util.Date _variable" )

How to convert the Date which was received by JavaMail to the format
which is correspond for the MySQL
Date format like YYYY-MM-DD ?

   <<Less

Re: JDBC and JavaMail: Date type transformation

Posted By:   Anonymous  
Posted On:   Wednesday, November 7, 2001 12:31 PM

About | Sitemap | Contact