I have the following MWE:
\documentclass[a4paper,11pt,Times]{article}
\usepackage[english]{babel}
\usepackage{amsbsy}
\usepackage{sectsty}
\usepackage[scaled=1]{helvet}
\usepackage{titlesec}
\usepackage{xcolor}
\usepackage[font=small]{caption}
\usepackage{sectsty}
\titleformat{\section}
{\normalfont\sffamily\bfseries\color{black}}
{\thesection}{1em}{}
\titleformat{\subsection}
{\normalfont\sffamily\slshape\color{black}}
{\thesubsection}{1em}{}
\title{The title}
\begin{document}
\maketitle
\section {\sffamily \textbf{Main Section}}
Main section text here
\subsection {\sffamily \textbf{Subsection}}
Subsection text here
\end{document}
Kindly help me on how to put a "period" next to the section Numbering. Presently, the code returns as:
"1 Main Section"
whereas I want
"1. Main Section"
Thanks