SyntaxFix
Write A Post
Hire A Developer
Questions
hope this may help you:
SELECT CAST(LoginTime AS DATE) FROM AuditTrail
If you want to have some filters over this datetime or it's different parts, you can use built-in functions such as Year and Month