我想在我指定的日期显示messageBox [英] I want to show messageBox in the date of I specify

查看:82
本文介绍了我想在我指定的日期显示messageBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我指定的日期显示messageBox我使用Timer Interval但Interval使用毫秒,对于我我想要这个格式的日期年/月/日00:00:00

你可以给我一些例子c#

非常感谢

I want to show messageBox in the date of I specify I use Timer Interval but the Interval use millisecond, for me i want a date with this format year/month/day 00:00:00
can U give me some example c#
thanks a lot

推荐答案

取决于你如何处理代码更改的日期和时间。您没有提供代码以及您使用的类型。检查以下文档,您可以使用它们来格式化您的要求的日期时间

自定义日期和时间格式字符串 [ ^ ]

自定义TimeSpan格式字符串 [ ^ ]
depending on how you handle date and time your code will be change. you haven't provide you code and which types you have used. check below documentation and you can use them to format date time for your requirements
Custom Date and Time Format Strings[^]
Custom TimeSpan Format Strings[^]


这篇关于我想在我指定的日期显示messageBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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