简体   繁体   中英

Date Format changes from dd/MM/yyyy to dd_MM_yyyy after downloading the attachment from email

I have stuck in a date format issue. I have sent a mail from Java code with date format as dd/MM/yyyy and mail received successfully. When I checked the attachment the date format is correct, but when I download the attachment, date format changes to dd_MM_yyyy.

I have checked in windows and Linux OS, but the issue remains same. As per my understanding there is no issue in the code.

Attachment Image:

在此处输入图片说明

Downloaded image:

在此处输入图片说明

Please look into the attached files, highlighted in Red Rectangles

Please help me over this.

I think the only way to achieve this is to use "very similar" symbols to the forward slash, fe this one: Division slash .

But speaking about using the "real slash" in file names - no, it's not possible in both Windows and Linux.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM