日期格式和在各个国家使用数据库 [英] Date Format and using database in various countries

查看:92
本文介绍了日期格式和在各个国家使用数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


后端数据库的一般问题,其中包含许多日期字段

数据库将用于放置月份的地区首先,和地区

没有。


我应该在表格设计中保存日期格式,例如:mm / dd / yyyy?


我多年来所做的是将日期格式存储在日期字段中,然后在

表格中,根据他们的区域,我会设置form_load上的日期格式

,具体取决于他们对mm / dd / yyyy或dd / mm / yyyy的偏好。为了尝试打击

混乱,我添加了第三个首选日期格式:mmm-dd.yyyy,其中

月将是3个字母的指定。


只是好奇其他人在做什么处理可以全球使用的数据库。


非常感谢,


Andy

Hello all,

General question for back-end database that has numerous date fields where
the database will be used in regions that put the month first, and regions
that do not.

Should I save a date format in the table design, such as: mm/dd/yyyy?

What I''ve done for years is to store the date format in date fields, then on
the forms, based on their region, I would set the date formats on form_load
depending on their preference of mm/dd/yyyy or dd/mm/yyyy. To try to combat
confusion, I added a 3rd preferred date format of: mmm-dd.yyyy, where the
month will be 3 letter designations.

Just curious what others are doing that deal with a database that can be
used globally.

Many Thanks,

Andy

推荐答案

在内部,Access将日期/时间值存储为实数,其中

整数部分表示日期(自1899年12月30日以来的天数)和

时间存储为一天的一小部分(0.5 =中午,0.25 =早上6点等)


在显示时,Access使用显示

值的计算机的日期格式(除非您在表格中的字段属性中指定格式

设计,或表格上的文本框。)


有关如何避免Access解释您的参赛作品的3种情况的详细信息

不正确,请参阅:

国际日期表Access中的ats

at:
http:/ /allenbrowne.com/ser-36.html


-

Allen Browne - 微软MVP。西澳大利亚珀斯

访问用户提示 - http:// allenbrowne .com / tips.html

回复群组,而不是mvps dot org的allenbrowne。


" ARC" < an ** @ andyc.comwrote in message

news:y4 ***************** @ nlpi068.nbdc.sbc.com ...
Internally, Access stores date/time values as real numbers, where the
integer part represents the date (number days since Dec 30, 1899) and the
time is stored as a fraction of a day (0.5 = noon, 0.25 = 6am, etc.)

At display time, Access uses the date format for the computer displaying the
value (unless you specify a format in the property of the field in table
design, or the text box on the form.)

For details on how to avoid the 3 cases where Access interprets your entries
incorrectly, see:
International Date Formats in Access
at:
http://allenbrowne.com/ser-36.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"ARC" <an**@andyc.comwrote in message
news:y4*****************@nlpi068.nbdc.sbc.com...

Hello all,


后端数据库的一般问题,其中包含许多日期字段

数据库将用于将月份放在第一位的区域,而区域

则不会。


我应该在表格中保存日期格式吗?设计,例如:mm / dd / yyyy?

我多年来所做的是将日期格式存储在日期字段中,然后

在表格上,根据他们所在的地区,我会根据他们对mm / dd / yyyy或dd / mm / yyyy的偏好设置

form_load的日期格式。为了打击混乱,我添加了第三种首选日期格式:

mmm-dd.yyyy,其中月份为3个字母。


只是好奇其他人在做什么处理可以全球使用的数据库。


非常感谢,


Andy
Hello all,

General question for back-end database that has numerous date fields where
the database will be used in regions that put the month first, and regions
that do not.

Should I save a date format in the table design, such as: mm/dd/yyyy?

What I''ve done for years is to store the date format in date fields, then
on the forms, based on their region, I would set the date formats on
form_load depending on their preference of mm/dd/yyyy or dd/mm/yyyy. To
try to combat confusion, I added a 3rd preferred date format of:
mmm-dd.yyyy, where the month will be 3 letter designations.

Just curious what others are doing that deal with a database that can be
used globally.

Many Thanks,

Andy


感谢您的链接,Allen。我确实使用格式字段进行未绑定日期输入

(例如,报告屏幕上的标题字段)。


我唯一可以''从你的链接告诉我们是否在日期字段的表格设计中保存日期格式的答案。

。我这样做的原始想法是在1999年,以确保访问是实际上将年份保存为4位数。

。所以我在表格设计中使用了格式

的mm / dd / yyyy。


不确定我是否应该再这样做了。


谢谢!

" Allen Browne" < Al ********* @ SeeSig.Invalidwrote in message

news:46 ********************* ** @ per-qv1-newsreader-01.iinet.net.au ...
Thanks for the link, Allen. I do use the format field for unbound date entry
(for critieria fields on a reports screen, for example).

The only thing I can''t tell from your link is the answer to the question on
whether or not to save a date format in the table design for date fields. My
original thinking in doing so was in 1999, to make sure that access was
actually saving the year''s as 4 digits. So I used mm/dd/yyyy in the format
in table design.

Not sure if I should be doing this anymore.

Thanks!
"Allen Browne" <Al*********@SeeSig.Invalidwrote in message
news:46***********************@per-qv1-newsreader-01.iinet.net.au...

在内部,Access将日期/时间值存储为实数,其中

整数部分表示日期(自1899年12月30日以来的天数)和

时间存储为一天的一小部分(0.5 =中午,0.25 =早上6点等) 。)


在显示时,Access使用计算机的日期格式显示

的值(除非你在字段的属性中指定格式)

表格设计,或表格上的文字框。)


有关如何避免Access解释您的
$ 3的详细信息b $ b条目不正确,请参阅:

访问中的国际日期格式

at:
http://allenbrowne.com/ser-36.html


-

Allen Browne - Micros经常MVP。西澳大利亚珀斯

访问用户提示 - http:// allenbrowne .com / tips.html

回复群组,而不是mvps dot org的allenbrowne。


" ARC" < an ** @ andyc.comwrote in message

news:y4 ***************** @ nlpi068.nbdc.sbc.com ...
Internally, Access stores date/time values as real numbers, where the
integer part represents the date (number days since Dec 30, 1899) and the
time is stored as a fraction of a day (0.5 = noon, 0.25 = 6am, etc.)

At display time, Access uses the date format for the computer displaying
the value (unless you specify a format in the property of the field in
table design, or the text box on the form.)

For details on how to avoid the 3 cases where Access interprets your
entries incorrectly, see:
International Date Formats in Access
at:
http://allenbrowne.com/ser-36.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"ARC" <an**@andyc.comwrote in message
news:y4*****************@nlpi068.nbdc.sbc.com...

>大家好,

后端数据库的一般问题,有多个日期字段
数据库将在哪里用于将月份放在第一位的地区,以及没有放置月份的地区。

我应该在表格设计中保存日期格式,例如:mm / dd / yyyy?
我多年来所做的是将日期格式存储在日期字段中,然后在表单上,​​根据区域,我会根据
form_load设置日期格式他们偏好mm / dd / yyyy或dd / mm / yyyy。为了打击混乱,我添加了第三种首选日期格式:
mmm-dd.yyyy,其中月份将是3个字母。

只是好奇其他人的正在处理可以在全球范围内使用的数据库。

非常感谢,

Andy
>Hello all,

General question for back-end database that has numerous date fields
where the database will be used in regions that put the month first, and
regions that do not.

Should I save a date format in the table design, such as: mm/dd/yyyy?

What I''ve done for years is to store the date format in date fields, then
on the forms, based on their region, I would set the date formats on
form_load depending on their preference of mm/dd/yyyy or dd/mm/yyyy. To
try to combat confusion, I added a 3rd preferred date format of:
mmm-dd.yyyy, where the month will be 3 letter designations.

Just curious what others are doing that deal with a database that can be
used globally.

Many Thanks,

Andy



ARC写道:
ARC wrote:

感谢您的链接,Allen。我确实将格式字段用于未绑定的

日期条目(例如,报告屏幕上的标题字段)。


我唯一可以''从你的链接告诉是关于是否在表格设计中保存日期格式

的问题的答案

日期字段。我这样做的原始想法是在1999年,

确保访问实际上将年份保存为4位数。所以

我在表格设计中使用了mm / dd / yyyy。


不确定我是否应该再这样做了。
Thanks for the link, Allen. I do use the format field for unbound
date entry (for critieria fields on a reports screen, for example).

The only thing I can''t tell from your link is the answer to the
question on whether or not to save a date format in the table design
for date fields. My original thinking in doing so was in 1999, to
make sure that access was actually saving the year''s as 4 digits. So
I used mm/dd/yyyy in the format in table design.

Not sure if I should be doing this anymore.



如何存储(从未这样做)。存储的是一个

的数字。


-

Rick Brandt,Microsoft Access MVP

发送电子邮件(视情况而定)至...

在Hunter dot com的RBrandt

Makes no difference to how it is stored (never did). What is stored is a
number.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


这篇关于日期格式和在各个国家使用数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆