如何使用vb.net在c#中为每门课程设置课程时间 [英] how to set course timings for each course in c# using vb.net

查看:64
本文介绍了如何使用vb.net在c#中为每门课程设置课程时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

AFF课程



开始时间13.30

现在时间13.15



请注意,这些课程从13:30开始,你必须在1315之前到达这里。





我想要的如果课程开始时间是13.30意味着我想自动设置当前时间是13.15。



我想从开始时间减少15分钟。

我怎么能用c#。



问候,

Narasiman P.

For AFF Course

Commencing Time 13.30
Present Time 13.15

Kindly be intimated that the classes commencing from 13.30 hrs and you are required to be present here by 1315 hrs.


I want if Course Commencing Time is 13.30 means automatically i want to set Present time is 13.15.

I want to reduce 15 Minutes from Commencing Time.
for that how can i do using c#.

Regards,
Narasiman P.

推荐答案

使用DateTime.AddMinutes(-15);



CommencingTime.AddMinutes(-15)



你的CommencingTime变量必须是日期时间。
Use DateTime.AddMinutes(-15);

CommencingTime.AddMinutes(-15)

You CommencingTime variable MUST be a datetime.


这篇关于如何使用vb.net在c#中为每门课程设置课程时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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