skaber
01-14-2004, 11:55 AM
Hello,
i need to insert values to mysql DB using the unix_timestamp function. My visual basic program works perfectly except for posting the timestamp in unix format. I was using the yyyy-mm-dd but now i have to change the format. I tried this but it doesnt work at all:
insert into pretimes values('Work','PersonID',UNIX_TIMESTAMP('1997-10-04 22:23:00');
How can i use the unix_timestamp function included in mysql to insert a value ? Or does anybody have any easier way to do it in visual basic ?
Thanks,
Francis
i need to insert values to mysql DB using the unix_timestamp function. My visual basic program works perfectly except for posting the timestamp in unix format. I was using the yyyy-mm-dd but now i have to change the format. I tried this but it doesnt work at all:
insert into pretimes values('Work','PersonID',UNIX_TIMESTAMP('1997-10-04 22:23:00');
How can i use the unix_timestamp function included in mysql to insert a value ? Or does anybody have any easier way to do it in visual basic ?
Thanks,
Francis