简体   繁体   English

Excel中的区域设置日期

[英]regional settings date in Excel

I got a problem with the date settings on my client system, 我的客户端系统上的日期设置出现问题,

My program demands to set the date as DD/MM/YYYY and I used the type as text in the database, 我的程序要求将日期设置为DD / MM / YYYY,并且在数据库中将日期类型用作文本,

so I am unable to see what was the date format in my client computers regional settings 所以我看不到客户端计算机区域设置中的日期格式是什么

so if my client computers regional setting is MM/DD/YYYY if while checking the date criteria in the code problem is occuring 因此,如果我的客户端计算机的区域设置为MM / DD / YYYY,则在检查代码中的日期条件时出现了问题

can anyone help me for this problem 谁能帮我解决这个问题

If you have libc available, you can use strftime to control the format of your date strings. 如果有可用的libc,则可以使用strftime来控制日期字符串的格式。

If you just have text entries in your database and don't know what the original format was, you are basically lost. 如果您的数据库中仅包含文本条目,并且不知道原始格式是什么,那么您基本上会迷路。 Date strings representation in the database probably shouldn't be ASCII strings to begin with. 首先,数据库中的日期字符串表示形式不应该是ASCII字符串。

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

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