腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(912)
视频
沙龙
1
回答
DisplayFormat
(
ApplyFormatInEditMode
=
true
,
DataFormatString
= "{
0
:
dd.MM.yyyy
}")
按
预期
显示
日期
,
但
保存
时
转换
错误
、
正如主题所说: [
DisplayFormat
(
ApplyFormatInEditMode
=
true
,
DataFormatString
= "{
0
:
dd.MM.yyyy
}")] <label asp-for="KeyStartDate&qu
浏览 13
提问于2019-02-16
得票数 0
回答已采纳
2
回答
使用自定义格式的
日期
时间验证。“.”的麻烦分隔符
、
、
如果我用这个[
DisplayFormat
(
ApplyFormatInEditMode
=
true
,
DataFormatString
= "{
0
:PeriodBeginFrom { get; set; }[DataType(DataType.Date)] [
DisplayFormat
(
ApplyFormatInEditMode
=
true
但
如果我试着用
浏览 2
提问于2013-04-23
得票数 2
回答已采纳
1
回答
MVC EditorFor
日期
不
显示
值
、
我想在MVC应用程序中以德文数据格式(
dd.MM.yyyy
)
显示
日期
,并为用户提供数据报警器。在这个问题上,我已经回答了很多问题,但仍然不能让它起作用。inbetriebnahmedatum; 步骤
浏览 5
提问于2017-12-31
得票数 0
2
回答
在ASP.NET MVC3中格式化DateTime
、
我在试着
显示
一个
日期
。我的视图模型代码示例如下:[
DisplayFormat
(
DataFormatString
= "{
0
:
dd.MM.yyyy
}",
ApplyFormatInEditMode
=
true
)] [DataType(DataType.Date, ErrorMessage = "Enter correct date (e
浏览 0
提问于2012-06-21
得票数 1
回答已采纳
2
回答
如何在
DisplayFormat
MVC中
显示
Asp.Net属性的自定义
错误
消息?
、
如何
显示
自定义
错误
消息我的模型中的代码如下, [DisplayErrorMessageResourceName = "DocumentIssueDate_DataType",ErrorMessageResourceType = typeof(CustomErrorMessages))
浏览 9
提问于2012-01-25
得票数 5
3
回答
字段' date‘必须是
日期
MVC %4
、
、
当我使用我的jQuery
日期
选择器
时
,我会遇到这个
错误
。',型号:[
DisplayFormat
(
DataFormatString
= "{
0
:
dd.MM.yyyy
}",
ApplyFormatInEditMode
=
true
)] [Required(ErrorMessage = "Date is required&qu
浏览 0
提问于2013-04-22
得票数 8
1
回答
Windows、EF和MVC3的验证问题
、
、
、
我有一个验证
错误
的问题,它只出现在Windows上,而不出现在本地Azure模拟器上。在我的模型中,我有一个属性为"Start“的类和一个用于德语
日期
格式的
DisplayFormat
:[
DisplayFormat
(
DataFormatString
= "{
0
:
dd.MM.yyyy
}",
ApplyFormatInEditMode
=
true
)] [Display(Name = &
浏览 1
提问于2011-08-20
得票数 6
回答已采纳
4
回答
在ASP.NET核心MVC中格式化视图中的
日期
、
因为无论我做什么都是"MM/dd/yyyy",我如何才能将
日期
格式设置为"
dd.MM.yyyy
"<div class="col-md-6 col-xs-6 pull-left">input-group-text calendar-fa"></span> </div>模型属性: [BindProper
浏览 24
提问于2018-11-23
得票数 1
1
回答
MVC3如何使用注释定义自定义
错误
消息?
、
、
我有一个DateTime字段(它可以接受多种
日期
时间格式,所以创建正则表达式模式很麻烦)The value 'Aaaaa' is notvalid for OwnerBirthDate[
DisplayFormat
(
ApplyFormatInEditMode
=
true
,
DataFormatString
= "{
0
:
dd.
浏览 3
提问于2013-01-18
得票数 1
1
回答
在asp.net核心mvc视图中绑定
日期
和时间
、
我无法在视图中绑定datetimepublic class ListaDisponibiliModel [
DisplayFormat
(
DataFormatString
= "{
0
:f}",
ApplyFormatInEditMode
=
true
)] [
DisplayFormat
(
ApplyFormatInEditMode</em
浏览 0
提问于2020-08-14
得票数 1
1
回答
Ajax datepicker以正确的GB格式发送,
但
gets to viewModel尝试解析为US格式
、
、
(
ApplyFormatInEditMode
=
true
,
DataFormatString
= "{
0
:dd/MM/yyyy}")] [DataType(DataType.Date)] [
DisplayFormat
(
ApplyFormatInEditMode
=
true
,
DataFormatString
(
浏览 1
提问于2014-12-15
得票数 0
1
回答
将客户端验证设置为德语
、
、
我猜这是一些基本的问题,而公认的答案很可能是我找不到的地方的链接:<globalization uiCulture="de" culture="de-DE" />[
DisplayFormat
(
DataFormatString
= "{
0
:
浏览 6
提问于2013-09-02
得票数 4
1
回答
日期
选择器
日期
时间格式问题。如果更改本地系统
日期
格式,行为会发生变化
、
我有一个包含以下方法的模型类[Display(Name = "Date Of Birth")]public DateTime?= "{
0
:dd-MM-yyyy}",
ApplyFormatInEditM
浏览 2
提问于2012-09-03
得票数 0
回答已采纳
8
回答
ASP.MVC EditorFor DateTime不
显示
、
我试图在剃须刀文件中
显示
从数据库中检索到的datetime字段,如下所示:我100%肯定地知道RequestDate不是空的,因为我检查了视图中传递的模型,它是来自数据库的
日期
。但是,datetime文本框仍然
显示
"mm/dd/yyyy“。我不知道为什么不
显示
日期
。有什么想法吗?谢谢。} }如果我使
浏览 10
提问于2013-05-30
得票数 16
1
回答
我应该从我的模型中移除所有[DataType(DataType.Date)]吗?
我遇到了一个问题,两个字段"BattleStartDate“和"BattleEndDate”没有
显示
在我的编辑表单上,即使在创建记录
时
已经在DB上设置了正确的值。(
DataFormatString
= "{
0
:MM/dd/yyyy}",
ApplyFormatInEditMode
=
true
)] [DataValidation(ValidationType.RangeValidation(
DataFormatS
浏览 0
提问于2020-07-20
得票数 0
1
回答
如何处理不同ui区域性的Datetime
、
、
我必须申请什么
DisplayFormat
?如何根据区域性在UI中将其
转换
回?如何将数据作为有效的datetime等
保存
到SQlServer数据库[
DisplayFormat
(
DataFormatString
= "{
0
:
DD.MM.YYYY
}",
ApplyFormatInEditMode
=
true
)] public Nullable<System.D
浏览 1
提问于2015-03-10
得票数 1
1
回答
ASP.NET MVC - DbUpdateConcurrencyException
(
ApplyFormatInEditMode
=
true
,
DataFormatString
= "{
0
:dd/MM/yyyy}")] //[
DisplayFormat
(
DataFormatString
(
ApplyFormatInEditMode
=
true
,
DataFormatString
= "{
0
:dd/MM/yy
浏览 3
提问于2017-11-20
得票数 0
3
回答
验证asp.net MVC中的纯时间输入
、
、
、
这就是模式:[
DisplayFormat
(
ApplyFormatInEditMode
=
true
,
DataFormatString
= "{
0
:hh:mm tt}")][
DisplayFormat
(
ApplyFormatInEditMode
=
true
,
DataFormatString
= &quo
浏览 7
提问于2013-06-01
得票数 16
回答已采纳
1
回答
ASP.NET核心DataFormat正在执行编辑操作
、
(
DataFormatString
= "{
0
:C
0
}",
ApplyFormatInEditMode
=
true
)] pub
浏览 2
提问于2020-03-20
得票数 1
回答已采纳
1
回答
如何从jQuery DateTimePicker,Asp网删除/隐藏时间
、
、
、
、
我删除了日历小部件中的时间选择,字段中的开始
日期
也没有时间。
但
主要问题是,当您选择
日期
时
,当前时间仍将插入到字段中。只需要
显示
日期
,没有时间。= "control-label col-md-2" }) @Html.EditorFor(model => model.DateTo, "{
0
:js $("#DateTo").datet
浏览 1
提问于2020-11-09
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
数据类型、各类型数据之间的计算与转换
JavaScript的六大数据类型2
Excel常用函数大全
我让DeepSeeK总结Vlookup函数31种用法,吓的想辞职
威纶通触摸屏宏指令,资料取样分类函数,详解与实操
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券