isdate 是一个判断字符串是否为日期的函数,0代表所传入的字符串不是日期,1代表传入的参数是日期。

select   isdate('30/12/2014')  ---0 第一个是 mdy
--如果换成
select   isdate('12/30/2014') 这样结果就是1了
select   isdate('3/12/2014')   ---1     dmy
select   isdate('2014/12/30')   ---1   ymd
select   isdate('2014/30/3')   --0

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
  • 2022-02-11
  • 2022-12-23
  • 2021-06-05
  • 2021-08-19
猜你喜欢
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2021-07-18
  • 2021-07-02
  • 2022-12-23
  • 2021-06-26
相关资源
相似解决方案