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
String fileRow = '';
fileRow = fileRow ',' +Date field
Actual CSV: Date 2/3/2020 12:00:00 AM
Expected CSV: Date 3-2-2020
Actual CSV:
Thanks in Advance
Date
2/3/2020 12:00:00 AM
Expected CSV:
Date
3-2-2020