sql format date to month day year code example Example: sql convert datetime to year month DATE_FORMAT(_column, '%Y-%m')AS `yyyy-mm`,