HOW TO: Work with and search date fields

Would it be possible to get a function to get the current date from the server to work with? Incorrect timesettings on the client would cause incorrect data....

Paul