C#Windows窗体应用程序 [英] C# Windows Form Application

查看:105
本文介绍了C#Windows窗体应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张表即员工。



员工表的列以及给定的数据类型如下:



EmpID Current_Date InTime OutTime TotalWorkingHours

int日期varchar(50)varchar(50)varchar(50)



现在我需要从InTime和OutTime计算TotalWorkingHours。



怎么做?????

I have a table namely Employee.

Columns Of the Employee Table along with the given datatypes are as follows.

EmpID Current_Date InTime OutTime TotalWorkingHours
int Date varchar(50) varchar(50) varchar(50)

now i need to calculate TotalWorkingHours from the InTime and OutTime.

How To do this?????

推荐答案

试试这个,

try this,
var hours = (datevalue1 - datevalue2).TotalHours;


这篇关于C#Windows窗体应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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