Subject | Re: [Firebird-Java] Date/Time with Prepared Statement |
---|---|
Author | Thomas Steinmaurer |
Post date | 2008-01-31T17:13:20Z |
Hello,
I've merged now the two DATE and TIME fields into a TIMESTAMP field and
use Roman's suggestion with setTimeStamp ... Works now. ;-)
Thanks to you both.
Regards,
Thomas
> Ah, the joys of Java!All in all, a bit confusing. ;-)
>
> Use the SimpleDateFormat class to create a format that will understand
> your date.
>
> Then, stick your date and string together and pass it to the formatter.
> It will give you a correct date in milliseconds, that you can use to
> create a new Timestamp.
I've merged now the two DATE and TIME fields into a TIMESTAMP field and
use Roman's suggestion with setTimeStamp ... Works now. ;-)
Thanks to you both.
Regards,
Thomas