Despite the fact that there are laws to stop age discrimination, there’s nothing to prevent a company asking your date of birth on an application form. But if you don’t get the job and you think it’s because of your age, you can use the fact that they asked you for your date of birth as possible evidence of age discrimination which is against the law. You may be able to make a claim for compensation.
If you have experienced discrimination, you can get help from the EASS discrimination helpline.
For more information about age discrimination at work, see Age discrimination at work