The tax-cut bill signed earlier this month has effectively made 2017 the last year in which many Americans will get a tax break for their charitable donations.

That’s because an estimated 27 million taxpayers who currently itemize—including their gifts to charity—will take the new, higher standard deduction in 2018, says the Tax Policy Center, a think tank based in Washington, D.C.

If the change could affect you, it’s all the more important to have your 2017 donations count. Be aware, though, of the different rules that apply to different types of charitable gifts and how they’re delivered.  

If You're Giving Cash

U.S. Postal Service delivery. Post offices are closed this year on Sunday, Dec. 31. So if you’re mailing a check to a charity through the U.S. Postal Service, your donation is good for tax-year 2017 only if the postmark on your envelope or package is before midnight Saturday, Dec. 30. That’s because your donation conforms with the Treasury Department’s “delivered when mailed” rule.

For proof, though, don’t just drop your envelope in the mailbox; it might not get postmarked until Jan. 2. Send it registered or certified mail. Keep the receipt and a copy of your canceled check for your file. Or send it via Express Mail and keep the receipt.

• Delivery by private mail service. If you’re sending a check to a charity through a private service such as UPS, the IRS’ “delivered when mailed” rule doesn’t apply. (Notably, it does apply when you send a tax return via a private mail service.) So if you must send a check this way, you’ll need to contact the charity before or on Dec. 31 to ensure that it received your payment. Ask for a confirmation via email, if possible.

• Credit card. If your donation appears on your credit-card statement as a December charge, it’s good for 2017, says IRS spokesman Eric Smith. That’s the case even if the charity doesn’t get around to processing the donation and sending you a receipt until January.

• Text. When you donate to a charitable appeal by inputting a code into your cell phone, the donation date later appears on your cell-phone bill. If your gift shows up as a charge on your cell-phone bill made before Jan. 1, you can itemize it for 2017.

• Pay-by-phone account. In this case, you respond to a text message by linking to a mobile-optimized web page that takes your credit card information. So the date of donation is the same as when you pay by credit card. In other words, it’s good if it’s no later than Dec. 31. You should find that date on your monthly credit card statement.

If You're Donating Investment Securities

• Electronic transfers of securities. When you direct your broker to transfer securities to a charity, it’s only considered a done deal when the funds are transferred from your account into another account.

“With stock and illiquid assets, they can’t be in transit; someone has to own them,” says Karla Valas, a managing director at Fidelity Charitable, a donor-advised fund connected with Fidelity Investments.

In real terms, the electronic transfer of ownership happens almost instantaneously with investment securities, Valas says. Many large charities have their own brokerage accounts, so transferring securities from your account to the charity’s happens as soon as your broker submits your order.

If you’re dealing with a smaller charity without a brokerage account and you’re concerned about your donated stock counting toward this year’s deduction, consider contributing through a donor-advised fund, sponsored by a public charity.

As the National Philanthropic Trust explains, the donor-advised fund is like a charitable savings account; you transfer your securities to it and get a tax deduction immediately. Then you can take your time deciding where the money should go. Once you’ve decided where the money should go, the fund takes responsibility for distributing your securities to the charities you’ve named.

Your donated securities are considered eligible for a tax deduction the moment you transfer them to the donor-advised fund because the fund is itself a charity by IRS standards. So you get a little edge, timewise. What’s more, the value of your donation for tax purposes stays the same even if the securities drop in value by the time they’re actually distributed to your named charities.

David Yeske, principal of Yeske Buie, a financial advisory located in San Francisco and Vienna, Va., says donor-advised funds are appropriate for anyone who gets a significant tax benefit from charitable giving. Valas notes that setting up such a fund through Fidelity Charitable takes a few minutes and costs nothing. The fund makes its money by charging an annual fee, maxing out at 0.60 percent of assets, or $100, whichever is greater.

• Stock certificates. In the rare instance that you’re donating actual stock certificates, you’ll need to make sure you’ve properly endorsed them; check with the issuing corporation for directions. If you’re mailing the certificates yourself, the same rules apply as for a mailed check: The donation date is the same as the postmark.