The databases that I use have a lot of data. Using two databases. I'm writing the php code, that will compare Date field and update wrong date in the second database. However, First database uses for date type "varchar(10)" and second database uses "data" type. Is that possible to convert from varchar to date before making comparison?
Thanks
What database are you using?
what you can do is convert on of your fields
eg: select convert(varchar(10),ze_date_field,105)
will change your date to dd-mm-yyyy format(105)
that works in sybase. test it out in your db.
'njoy,
zone16
MySQL 3.2 .. It's not working ..
for mysql try DATE_FORMAT
select date_format(ze_date,'%d-%m-%Y') will give you dd-mm-yyyy
It's probably easier to change your date to varchar and compare varchar...
hope it help,