I have a table with a datetime field, i have written a script that is checking the time of the last record that was put into the table, and if the record time is a certain time, then the script runs more code, but i was having trouble getting it to work the way i wanted it to work, so i thought of the integer idea, ive seen it before but i just dont know how to convert the datetime to an integer... i was messing with millisec() and second() thinking that was it, but thats not what i was wanting... Does anyone have an idea of what im talking about ?