且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

验证开始时间应小于结束时间的时间

更新时间:2023-10-27 15:58:22

你是说你的时间参数是一个字符串?它是否总是一个字符串或者你在将它传递给这个函数之前转换它了吗?


如何收集(用户输入?,数据库?,列表?)。


为了更好的衡量,请列出此函数的参数(值,id,ind)的值和类型,并在之前和之后显示任何转换之前和之后的类型这个函数调用。


这可能有助于提供问题的快捷方式。
Are you saying your parameter for time is a string? Was it always a string or did you convert it before you passed it to this function?

How is it "gathered"(user input?, database?, list?).

For good measure, please list the values and types of the arguments (value, id, ind) for this function, and , show the types before and after any conversion was made prior to this function call.

That may be helpful in providing a shortcut to your issue.


我忘记了:你在使用AM&具有这些值的PM?
And I forgot: Are you using AM & PM with these values?


实际上这个概念是dhtmlxgrid http://docs.dhtmlx.com/doku.php?id=d...ing#validation

我不检查AM和PM ,它的24小时格式,我正在检查ind == 1和2的正则表达式
Actually the concept is dhtmlxgrid http://docs.dhtmlx.com/doku.php?id=d...ing#validation
im not checking AM and PM,its 24hr format,im checking regular expression for that ind==1 and 2