To use classical Ito formula \begin{equation} f(t,B_t) - f(0,B_0) = \int\limits_0^t f'_s(s,B_s)ds + \frac 12\int\limits_0^t f''_{xx}(s,B_s)ds + \int\limits_0^t f'_x(s,B_s)dB_s \end{equation} $f(t,x)$ needs to be $C^{1,2}([0,\infty)\times\mathbb R)$.

Is there any possibility to use it if $f(t,x)$ is piecewise continuously differentiable in $t$ and two times continuously differentiable in $x$? I mean, there exist $t_i$, $i=1...n$, $f(t,x)\in C^{1,2}((t_i,t_{i+1})\times\mathbb R)$, $f$ and it's derivatives $f^\prime_t$, $f^\prime_x$ and $f^{\prime\prime}_{xx}$ have jump discontinuity at $t_i$.