How to extract year from datetime in sql July 8, 2019 16 32 64 128 How to extract month and year from datetime in sql