如何在日期变量中检索稿件日期? [英] how to retrieve 0000-00-00 date in date variable?

查看:74
本文介绍了如何在日期变量中检索稿件日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dim programDate_date21 As Date = reader.GetString(21)
                Dim bd21 As String = programDate_date21.Year.ToString.PadLeft(4, "0") + "-" + programDate_date21.Month.ToString.PadLeft(2, "0") + "-" + programDate_date21.Day.ToString.PadLeft(2, "0")





我正在使用vs 2008 express编辑离子,我想在日期变量中检索稿件日期



数据正在从tb_kna_analysis_tv表中检索。我想将其插入到tb_kna_analysis_tv中使用上面的代码。



I am using vs 2008 express edition, and I want to retrieve 0000-00-00 date in date variable

the data is being retrieving from tb_kna_analysis_tv table .and i want to insert it into tb_kna_analysis_tv by using above code .

推荐答案

你不能。



0000-00-00不是有效日期:该月没有第0个月或第0个日。
You can't.

0000-00-00 is not a valid date: there is no "zeroth month" or "zeroth" day of the month.


这篇关于如何在日期变量中检索稿件日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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