Month and week is not working properly

Sir From ke andar month or week sehi coding dalne par phi output sahi nahi aa raha hain ,coding or output ki image de raha huin .