\documentclass[italian]{article}
\usepackage{ifpdf,ifxetex} 
\ifpdf
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{microtype}
\else
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage{italian}
\fi 
\usepackage[showdow,useregional]{datetime2-it-fulltext}


\begin{document} 

\thispagestyle{empty}
 vcvc
	\section{Date}
	\subsection{it-fulltext}
	\DTMsetdatestyle{it-fulltext}
	\input{BatTestDate}
	\section{Time}
	\subsection{it-fulltext}
	\DTMsettimestyle{it-fulltext}
	\input{BatTest}
\end{document}
