T sql extract month from datetime July 8, 2019 16 32 64 128 T sql extract month and year from datetime