是否有任何预约安排代码 [英] Is there any appointment scheduling code available

查看:70
本文介绍了是否有任何预约安排代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为医生开发一个网络应用程序,我想要预约安排的帮助我很困惑如何减去或添加时间任何建议

I am developing a web app for doctors, I want help for appointment scheduling I am confused how would i subtract or add time any suggestions

推荐答案

在.NET中您在创建此类计划时使用DataTime对象的框架,并且您有许多选项可以添加秒,分钟甚至数年,类似地,您可以相互减去它们等等。



我写了一篇解释这个的文章,你可以在那里学到它。 了解.NET Framework中的DateTime结构(使用C#) [ ^ ]



不知何故,我确实想在这里发布非常基本的代码,让你无需仔细阅读整篇文章即可理解它(但请仔细阅读,它将解释.NET Framework中关于DateTime对象的基础知识。



In .NET Framework you work with DataTime objects when you're creating such schedules and you have many options where you get to add seconds, minutes or even years and similarly you can subtract them from each other and so on.

I have written an article that explains this, and you can learn it there. Understanding DateTime struct in .NET Framework (using C#)[^]

Somehow, I do want to post the very basic code here, to make you understand it without having to go through that entire article (but do give it a read, it will explain the basics about DateTime object in the .NET Framework).

// create a new instance
DateTime dateTime = DateTime.Now;
// add one day to it
dateTime = dateTime.AddDays(1);
// you'll have the same time, but the day would increment by one. 





减去相同的东西,你只需将负值传递给它。



Same thing goes for subtract, you just pass a negative value to it.


你请求帮助?你愿意付钱吗?



没有这个论坛,据我所知是帮助,如果有人有问题,而不是为你工作。



对不起我的英语,我不是本地人
You ask for help? Are you willing to pay?

No this Forum as I understand is to help if somebody has a Problem and not to make the work for you.

Sorry for my "English", I'm not native


这篇关于是否有任何预约安排代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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