If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
insert vb.net datetime into a db2 mm/dd/yyyy field
I have a vb.net program that takes the date of today system.datetime.now and inserts it into a db table. however system.datetime.now is mm/dd/yyyy hh.mm.ss and wont be accepted by the db2 database. how do i truncate it so it only inserts the date not the date and time.
you can always convert this string to date with substring
and create a string 'yyyy-mm-dd'
will check if any builtin function for this
Best Regards, Guy Przytula