社区
Delphi
帖子详情
对DateEdit赋值
wsxcdx
2009-10-13 10:47:14
如图所示
想点击按钮,将Edit里的日期赋值给DateEdit,使DateEdit里的值为
2009-09-09
DateEdit默认带有日期分隔符
-
请问这个该怎么做?
...全文
707
12
打赏
收藏
对DateEdit赋值
如图所示 想点击按钮,将Edit里的日期赋值给DateEdit,使DateEdit里的值为2009-09-09 DateEdit默认带有日期分隔符 - 请问这个该怎么做?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
12 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
hzg134679hzg
2009-10-13
打赏
举报
回复
DateEdit1.Date := now;
wxsan
2009-10-13
打赏
举报
回复
这个比较简单
wxsan
2009-10-13
打赏
举报
回复
思路是:将下面的日期数字分解组合为上面的日期格式;
如果有问题可以到高级群:9642802,找管理员或群里的朋友。
wsxcdx
2009-10-13
打赏
举报
回复
有没有人能说的具体点啊?
hzg134679hzg
2009-10-13
打赏
举报
回复
Date
wsxcdx
2009-10-13
打赏
举报
回复
提取之后怎么赋值给DateEdit呢?
hzg134679hzg
2009-10-13
打赏
举报
回复
DecodeDate
wsxcdx
2009-10-13
打赏
举报
回复
能看见不?
wsxcdx
2009-10-13
打赏
举报
回复
看不到图片?
wsxcdx
2009-10-13
打赏
举报
回复
问题已解决
感谢 beifangke !
happinessdepig
2009-10-13
打赏
举报
回复
mark
beifangke
2009-10-13
打赏
举报
回复
DateEdit1.Text:=copy(edt1.Text,1,4)+'-'+copy(edt1.Text,5,2)+'-'+copy(edt1.Text,7,2);
DateEdit1.Date:=StrToDate(copy(edt1.Text,1,4)+'-'+copy(edt1.Text,5,2)+'-'+copy(edt1.Text,7,2));
PyQt5-Q
Date
Edit
的简单使用操作
使用PyQt5开发图形界面,里面使用日期框,这里把这个Q
Date
Edit
组件命名为:begin
Date
from PyQt5.QtCore import Q
Date
1.初始化
赋值
,不设置则默认为2000/1/1,这里默认为当天日期 self.begin
Date
.set
Date
(Q
Date
.current
Date
()) 2.读取选择后的日期 sBegin
Date
= self.begin
Date
.
date
().toString(Qt.ISO
Date
) print(sBegin
Date
) 显示日期格式: yyyy-mm-dd 如:2019-07-30 网上查到的资料很多都是
赋值
的
DEV之
Date
Edit
因为C#本身的
Date
TimePicker无法同时修改时间和日期,因此采用dev控件。 private void Form1_Load(object sender, EventArgs e) { this.
date
Edit
1.Properties.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm:ss"; ...
DevExpress的
Date
Edit
控件使用
常用代码如下 private void Form_Load(object sender, EventArgs e) { // 纯代码设置 // 设置带时间选择窗口
date
Edit
2.Properties.Vista
Edit
Time = DevExpress.Utils.DefaultBoolean.True; // 时间调整框格式
date
Edit
2.Properties.VistaTi
Devexpress的
Date
Edit
控件中
Date
Time与
Edit
Value异同
相同: 两者值相同,改变一个值都会引起另一个值做出相应改变。 不同: 1:在界面上对控件的编辑框进行操作时,
Edit
ValueChanged事件先响应,
Date
TimeChanged事件后响应。 2:
Date
Time中的时间格式和自定义的相同,
Edit
Value中的时间格式与windows系统时间格式相同。 当动态设置Text和
Edit
Value时,无论是什么类型的值均可直接对其进行
赋值
...
Devexpress.Xtra
Edit
ors.
Date
Edit
Properties- Buttons-Kind=Combo Musk-
Edit
Mask='yyyy-MM-dd'
Delphi
5,388
社区成员
262,730
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章