Depends on how you want to get it. All DBMS have a function to get the current time. MySQL, you can use the NOW() function and that will fetch the time on the server. If you are using Servlets of anykind, you could write a simple servlet to get the current time on the Server. Hope that points you in the right direction.