i used the date() finction in my databse . it worked properly . when i coped my database to other computer the function did not worked