Last updated: November 2026
Under Family Code section 242, a San Diego domestic violence restraining order hearing must happen within 21 days of the temporary order ruling, or 25 days for good cause. Code of Civil Procedure sections 527.6 and 527.8 set the same limit for harassment and workplace violence. How long a restraining order case takes beyond that depends on continuances and appeals.
This guide is for people in San Diego County who have been served with restraining order papers, or expect to be. It covers domestic violence, civil harassment and workplace violence orders under California law. If your employer filed the petition, see our guide for employees served with a workplace violence restraining order.
How long does a restraining order case take, stage by stage?
A restraining order case in California moves from the request to a temporary order ruling, then service, the hearing, the order after the hearing and a possible appeal. State statutes put a time limit on most of those stages. The list below gives each limit and its source, in order. These are legal limits, not a forecast of your case.
- The petitioner files a request. Under Code of Civil Procedure sections 527.6(e) and 527.8(g), a request for a temporary order without notice must be granted or denied the same day, or the next court day if filed too late to review.
- The hearing gets set. Family Code section 242(a) requires a domestic violence hearing within 21 days of the temporary order ruling, or 25 days for good cause. Code of Civil Procedure sections 527.6(g) and 527.8(i) set the same limits for civil harassment and workplace violence cases.
- You are served. Family Code section 243(a) and Code of Civil Procedure section 527.6(m)(1) require personal service at least five days before the hearing, unless the court shortens that time.
- The firearms clock starts. Family Code section 6389(c)(2) and Code of Civil Procedure section 527.9(b) set 24 hours to give up firearms and 48 hours to file the receipt.
- The hearing is held, or continued. Family Code section 245(a) and Code of Civil Procedure section 527.6(o) give the respondent one continuance as a matter of course.
- The judge rules. Orders after hearing have maximum lengths set by statute, shown in the table further down.
- The appeal window opens under California Rules of Court rule 8.104(a)(1).
Say a judge rules on a domestic violence temporary order on a Monday. Under section 242, the hearing has to be held by the Monday three weeks later, unless the court finds good cause for 25 days or grants a continuance.
For the courtroom itself, see our guide to what happens at a restraining order hearing in San Diego.
How long does a temporary restraining order last?
A temporary restraining order in California is built to last until the hearing. For civil harassment, Code of Civil Procedure section 527.6(f) caps it at 21 days, or 25 days if the hearing is extended, unless the court changes or ends it sooner. Section 527.8(h) sets the same 21-day limit for workplace violence orders. If you heard the other side plans to drop the case, our post on whether a restraining order can be dropped before the hearing explains what still applies until a judge rules.
For domestic violence orders, Family Code section 242(b) says that if the hearing is not held in time, the court can still hear the case, but the temporary order can't be enforced unless it was extended under Family Code section 245.
Check your paperwork each time the date moves. Family Code section 245(d) requires an extended order to state its new expiration date on its face.
Some cases start before anyone files at all. An emergency protective order (EPO) is a short protective order that a designated judicial officer can issue at any hour, "whether or not the court is in session," under Family Code section 6241. Family Code section 6256 says an EPO expires at the close of judicial business on the fifth court day after it was issued, or on the seventh calendar day, whichever comes first.
If you were handed an EPO and then a temporary restraining order, read both end dates.
What deadlines start the day you are served?
Being served starts two short clocks under California law. A restrained person must give up firearms and ammunition within 24 hours of service and file a receipt with the court within 48 hours. Family Code section 6389(c)(2) sets this for domestic violence orders, and Code of Civil Procedure section 527.9(b) sets it for civil harassment and workplace violence orders.
Section 6389(c)(2) also says that if a law enforcement officer asks for the firearms when serving the order, they must be surrendered immediately.
Service also tells you how much time is left to prepare. The legal floor is five days before the hearing, under Family Code section 243(a) and Code of Civil Procedure sections 527.6(m)(1) and 527.8(n). Five days is not much time to collect texts, records and witnesses.
A written response is the other early decision. The California Courts self-help guide for domestic violence cases (as of November 2026) says, "Responding in writing is optional and there is no penalty if you don't." If there is an open criminal case, what you write in a civil response can matter there too. Talk that through with a lawyer before you file anything.
Our checklist for the first 48 hours after being served covers the papers form by form.
Can the hearing date be moved?
Yes. California gives the respondent one continuance "as a matter of course" for a reasonable period to respond, under Family Code section 245(a) for domestic violence cases and Code of Civil Procedure sections 527.6(o) and 527.8(p) for civil harassment and workplace violence cases. Either side can also ask for more time by showing good cause.
The request can be made in writing before the hearing or out loud at it, under Family Code section 245(b) and Code of Civil Procedure section 527.6(p)(1). The self-help guide says: "If you need more time to put together evidence, you can let the judge know at your hearing."
The statutes say only "a reasonable period," so the length is up to the judge. In the Monday example above, the three-week date moves to whatever new date the judge sets.
Under Family Code section 245(c) and Code of Civil Procedure section 527.6(p)(2), a temporary restraining order stays in effect until the end of the continued hearing unless the court orders otherwise. So a continuance buys preparation time, and you live under the temporary order for longer.
We cover the mechanics of asking in can I get an extension to my restraining order court date.
How long does a restraining order last after the hearing?
A restraining order issued after a hearing in California can last up to five years in domestic violence and civil harassment cases, and up to three years in workplace violence cases. The judge picks the length inside those caps, and each type can be renewed.
| Order type | Longest order after hearing | Renewal | Source |
|---|---|---|---|
| Domestic violence | Up to 5 years | 5 or more years, or permanent | Family Code section 6345(a) |
| Civil harassment | Up to 5 years | Up to 5 more years | Code of Civil Procedure section 527.6(j)(1) |
| Workplace violence | Up to 3 years | Up to 3 more years | Code of Civil Procedure section 527.8(l)(1) |
After the hearing the court dates usually stop, while the order can run for years and be renewed.
Renewal does not require a new incident. Family Code section 6345(a) allows a domestic violence renewal "without a showing of further abuse since the issuance of the original order," and section 527.6(j)(1) says the same about further harassment. For both of those order types, the renewal request can be made any time within the three months before the order expires.
What if someone appeals the decision?
An appeal is the last possible stage of a restraining order case. Under California Rules of Court rule 8.104(a)(1), a notice of appeal is generally due 60 days after the clerk or a party serves a notice of entry or a file-endorsed copy of the order, and never later than 180 days after entry, whichever comes first.
Rule 8.104 opens with an exception: "Unless a statute or rules 8.108, 8.702, or 8.712 provides otherwise." Those other rules can move the deadline, so check the 60 days with a lawyer before you rely on it.
No rule sets how long the appeal itself takes once filed; that varies with the appellate court's calendar. Our post on how to appeal a restraining order in California walks through the steps.
An appeal is not the only way to change an order. Family Code section 6345(a) and Code of Civil Procedure section 527.6(j)(1) let either party ask the court to modify or end an order, by written stipulation or by motion.
Frequently asked questions
Is there a deadline to file a written response?
No fixed number of days appears in the statutes. Family Code section 243(c) and Code of Civil Procedure section 527.6(h) say the respondent may file a response, without setting a filing deadline. The California Courts self-help guide for domestic violence cases says, "Responding in writing is optional and there is no penalty if you don't." A response still has to be filed and mailed to the other side before it can help you at the hearing, so earlier is safer than later.
Does the 21-day clock apply if no temporary order was requested?
Yes, but it starts on a different day. Under Family Code section 242(a) and Code of Civil Procedure section 527.6(g), when the petitioner does not ask for a temporary order, the hearing must be held within 21 days of the filing date, or 25 days for good cause. The only difference is the starting point: the filing date instead of the judge's ruling on a temporary order.
What if the restraining order has no end date written on it?
It lasts three years. Family Code section 6345(c) says a domestic violence order after hearing with no expiration date on the form lasts three years from the date it was issued. Code of Civil Procedure section 527.6(j) has the same three-year default for civil harassment orders. Check the order you received after the hearing. If the expiration date is blank, that three-year default is your end date.
How we can help
At Flores Legal Allies, attorney Andrew Flores helps people in San Diego and Los Angeles who have been served with a restraining order, and we start by listening. We read your papers with you and put every date on one calendar: the 24-hour firearms deadline, the hearing date, any response you file, and the appeal window if the ruling goes against you. We talk through whether a written response helps or hurts if there is a related criminal case. When it makes sense, we prepare, file and serve it, and we appear with you at the hearing. Learn more about our restraining order defense work.
Served in the last few days? Call (619) 356-1556 for a free 30-minute consultation, or request a free consultation online. Our office is at 427 C Street, Suite 220, San Diego, CA 92101.
This article is general information, not legal advice for your situation, and reading it does not create an attorney-client relationship. Statutes and court rules are cited as of November 2026.