日期以不同的格式保存在Access数据库中 [英] Date Save in Access database in different format
本文介绍了日期以不同的格式保存在Access数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我保存日期13-5-2013时,它以数据库13/5/2013格式保存日期,但是当我保存日期07-5-2013
它保存日期05/07/2013格式。为什么日期以不同的格式保存?
Plz有人帮助我!
when i save date 13-5-2013 it save date in database 13/5/2013 format but when i save date 07-5-2013
it save date 05/07/2013 format.why date save in different format?
Plz Some one Help me!
推荐答案
当您将日期保存到Access数据库时,为了确保它们以正确的方式保存(它根据区域设置而改变),你应该格式化它们#yyyy / mm / dd#
这将解决你的问题。
When you are saving your dates to an Access Database, to ensure they are saved in the correct way (it changes depending on regional settings), you should format them #yyyy/mm/dd#
This will resolve your issue.
如果你想要那样的商店创建一个varchar的文件格式
If u want store like that create a filed format as varchar
这篇关于日期以不同的格式保存在Access数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文