我必须建立这样的日期时间才能获得增加的日期,因为它应该继续前进。然后我有时间,因为它应该在04/10/16到10/09/16之间出发彼此抵消日期时间 - 必须告诉总共的天数
我不在乎日期时间。它不应该用于任何事情。我需要的是从那时起有多少天。
Datetime dateString = "4/10/2016 8:30:52" //I pretend that it comes from the database, it was more in terms of see what come there.
DateTime dt = DateTime.Now.AddDays(5);
我需要的是,它告诉我在我进入的两个日期时间之间有多少天。
*两个日期时间之间有多少天*这里只有*一个*'DateTime' - 另一个是字符串。 – Plutonix
@Plutonix我假装它来自数据库,它更多的是看看那里发生了什么。 –
所有主要数据库都可以存储并返回日期时间。给出2个DateTime值,只需减去 – Plutonix