简体   繁体   English

从电子邮件下载附件后,日期格式从 dd/MM/yyyy 更改为 dd_MM_yyyy

[英]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.我已经从 Java 代码发送了一封邮件,日期格式为 dd/MM/yyyy,邮件成功接收。 When I checked the attachment the date format is correct, but when I download the attachment, date format changes to dd_MM_yyyy.当我检查附件时,日期格式是正确的,但是当我下载附件时,日期格式更改为 dd_MM_yyyy。

I have checked in windows and Linux OS, but the issue remains same.我已经检查了 Windows 和 Linux 操作系统,但问题仍然存在。 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 .我认为实现这一目标的唯一方法是对正斜杠使用“非常相似”的符号,例如: Division slash

But speaking about using the "real slash" in file names - no, it's not possible in both Windows and Linux.但是谈到在文件名中使用“真正的斜杠” - 不,这在 Windows 和 Linux 中都是不可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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