Can anyone help me with this?. How to extract the time from the date field and also the date format while creating the CSV file in the batch class. Please find the below code.
String fileRow = ''; fileRow = fileRow ',' +Date field
Date 2/3/2020 12:00:00 AM