尼泊尔语日期转换为英语日期:减去-56年-8个月-16天 [英] Nepali Date to English Date: Subtract - 56 Years - 8 Months - 16 Days

查看:567
本文介绍了尼泊尔语日期转换为英语日期:减去-56年-8个月-16天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

英语日期对尼泊尔日期:添加-56年-8个月-16天 尼泊尔语日期到英语日期:在vb6.0中减去-56年-8个月-16天

English Date to Nepali Date: Add - 56 Years - 8 Months - 16 Days Nepali Date to English Date: Subtract - 56 Years - 8 Months - 16 Days in vb6.0

我想减去日期并添加日期,以将日期从英语转换为尼泊尔语,并将尼泊尔语转换为英语,我正在使用以下代码,但由于它是最后一行,因此只能转换年份.

I want to subtract date and add date to convert date from English to Nepali and Nepali to English I'm using following code but it converts only year because it is last line.

Private Sub Command1_Click()

Text1.Text = Date
Text2.Text = DateAdd("d", 16, Text1.Text)
Text2.Text = DateAdd("m", 8, Text1.Text)
Text2.Text = DateAdd("yyyy", 56, Text1.Text)

End Sub 

推荐答案

您所说的I want to subtract ...:

Private Sub Command1_Click()
    Text1.Text = Date
    Text2.Text = DateAdd("d", -16, Text1.Text)
    Text2.Text = DateAdd("m", -8, Text2.Text)
    Text2.Text = DateAdd("yyyy", -56, Text2.Text)
End Sub 

这篇关于尼泊尔语日期转换为英语日期:减去-56年-8个月-16天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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