nvhung.mctt
Member
Dear All,
I have a code below
for example: StartDate = 1/1/2009
EndDate = 31/12/2009
Normal, I have to result is:
TxtDate_0.text = 01-Jan-2009 00:00
TxtDate_1.text = 31-Dec-2009 00:00
but with code above, result is not correct
Please show me code correct.
Thanks very much.
Best Regards,
Nguyen Van Hung
I have a code below
VB.NET:
TxtDate_0.Text = Format(StartDate, "dd-mm-yyyy hh:nn")
TxtDate_1.Text = Format(EndDate, "dd-mm-yyyy hh:nn")
for example: StartDate = 1/1/2009
EndDate = 31/12/2009
Normal, I have to result is:
TxtDate_0.text = 01-Jan-2009 00:00
TxtDate_1.text = 31-Dec-2009 00:00
but with code above, result is not correct
Please show me code correct.
Thanks very much.
Best Regards,
Nguyen Van Hung