当使用datepicker选择今天的日期时,总是保存并默认为1899-12-30 [英] When selecting today's date using datepicker always saves and defaults to 1899-12-30

查看:342
本文介绍了当使用datepicker选择今天的日期时,总是保存并默认为1899-12-30的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个环境问题,但我不知道要查找什么。基本上当用户尝试使用Sheridan的datepicker选择今天的日期时,它将留空,或者当尝试保存记录时将其保存为12/30/1899。这是一个使用vb6和sybase9的应用程序。每个其他日期都可以正常工作,但今天的日期。

This is an environment issue, but I'm not sure what to look for. Basically when the user tries to select today's date using Sheridan's datepicker it either leaves it blank or when trying to save the record saves it as 12/30/1899. It's an application using vb6 and sybase 9. Every other date works correctly but today's date.

另外,我观察到,无论什么,今天的日期框始终保持选择。任何人都可以给我建议步骤或事情,我可以检查,以了解为什么会发生这种情况。重新注册ocx文件,尝试附加调试器并重新安装软件。没有任何工作,不会感谢任何建议。

Also, I observed that today's date box always remains selected no matter what. Could anyone give me suggestions on steps or things I can check to get to the reason why this maybe happening. Re-registered the ocx files, tried attaching debugger and reinstalling software. Nothing worked, would appreciate any suggestions.

推荐答案

我发现他们在他们的机器上实际上有一个更好的版本的ocx 。当我把正确的旧版本重新注册后,正常工作

I found that they had wrong actually a further version of that ocx somehow on their machine. When I put the correct older one and re-registered it, worked as it should.

此外,虽然也许不是这种情况。但是,我发现问题可能是由于损坏/奇怪的区域日期格式设置在注释中提出的。此外,您还应该在更改这些设置后重建所有用户配置文件。而且,我们在使用上述之前做过这些事情。无论如何,感谢所有的帮助。

Also, although maybe not in this case. But, I found problem could be cause as suggested in comments by corrupt/odd regional date format settings. In addition you should also rebuild all user profiles once you change those settings. And, we did those things before fixing it using the above. In any case, thanks all for your help.

这篇关于当使用datepicker选择今天的日期时,总是保存并默认为1899-12-30的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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