如何验证日期列/字段 [英] How to validate date column/field

查看:49
本文介绍了如何验证日期列/字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hey SharePoint Fam!


我在构建的自定义列表中遇到问题,该列表允许用户错误地使用系统。 列表中有4个日期字段,所有字段都必须采用M / DD / YYYY格式(2014年3月6日)。 有些用户正在使用sytsem并且只需要3/6
就会破坏系统。 是否可以为每个字段添加某种列验证以确保添加年份或javascript片段?
$


感谢N Advance

解决方案

您好,


您可以尝试以下


https:/ /njrathod.wordpress.com/2017/07/31/sharepoint-date-conversion-to-javascript-mmddyyyy-format /


https://sharepoint.stackexchange.com/questions/ 73609 /格式日期使用JavaScript的对象模型


Hey SharePoint Fam!

I have a problem with a custom list i built that is allowing users to use the system incorrectly.  There are 4 date fields in the list which all need to be in format M/DD/YYYY (3/6/2019).  Some users are using the sytsem and putting in just 3/6 which will break the system.  Is it possible to add some kind of column validation for each field to make sure the year is added or a javascript snippet?

Thanks N Advance

解决方案

Hi,

You can try the following

https://njrathod.wordpress.com/2017/07/31/sharepoint-date-conversion-to-javascript-mmddyyyy-format/

https://sharepoint.stackexchange.com/questions/73609/format-date-using-javascript-object-model


这篇关于如何验证日期列/字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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