i have a scenario where i want to name excel in a format of
excel_(yyyy-dd-mm) format
how do i do that ?
i have a scenario where i want to name excel in a format of
excel_(yyyy-dd-mm) format
how do i do that ?
- Assign -> FileName = "Excel_"+Now.toString("yyyy-dd-MM")
Check the below image for better understanding,
Another condition -
If you have the data of date in a String variable in a different format like dd/MM/yyyy
- Assign -> InputDate = "15/01/2022"
- Assign -> FileName = "excel_"+DateTime.ParseExact(InputDate, "dd/MM/yyyy", System.globalization.Cultureinfo.InvariantCulture).toString("yyyy-dd-MM")
Check the below image for better understanding,
Hope it helps!!
"excel_" + Now.ToString("yyyy-dd-MM") + ".xlsx"
fileName
.fileName
.Try this
“Excel_”+Now.ToString(“yyyy-dd-MM”)+“.xlsx”
Hope it will helps you
Cheers!!