Excel中日期的Vb.net等效功能 [英] Vb.net equivalent function of date in excel

查看:64
本文介绍了Excel中日期的Vb.net等效功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Excel中日期的Vb.net等效函数

我正在尝试在VB.NET中进行以下日期计算.

Excel中的DATE函数正是我所需要的.

VB.NET中有任何等效或类似的方法吗?

="13/06/2012" -DATE(YEAR("13/06/2012"),1,1)+1

在VB.NET中可以实现的任何方式...

如果是,请分享代码或建议我....

[edit]已删除呼喊"-OriginalGriff [/edit]

Vb.net equivalent function of date in excel

I am trying to do below date calculation in VB.NET.

The DATE function in Excel is exactly what I need.

Is there any equivalent or similar method available in VB.NET?

="13/06/2012"-DATE(YEAR("13/06/2012"),1,1)+1

Any possible to achieve in VB.NET...

If yes, please share code or suggest me....

[edit]SHOUTING removed - OriginalGriff[/edit]

推荐答案

是-使用DateTime结构: ^ ]
Yes - use the DateTime structure: MSDN[^]
You can add or subtract two of them to produce a Timespan structure: MSDN[^]


这篇关于Excel中日期的Vb.net等效功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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