Dear Ranjan BANERJI, I would like to thank you for your reply but I feel that I have to exemplify my problem a bit more: I am able to extract the date portion from the user-supplied date but I am not able to do the same for the date retrieved from the database. What I need is the name of the SQL function that does this. Thank you for your time, Christos P.:)