can we extract only year in the string "04.07.2019 16:56:21" without using for loop? : <p>I am trying to extract the year from a date and time string something like "04.07.2019 16:56:21". Can I extract only year without using for loop in batch script?</p>
