Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Hondo Chalthoum    on Jul 14 In Asp.net Category.

  
Question Answered By: Johnathan Nelson   on Jul 14

Just tell me How to retirve text from a text Box and
cast it as a date.All my Attempts are Failing

I tried this


TextBox1.Text = FormatDateTime(TextBox1.Text,
DateFormat.ShortDate)
Dim ds As date  =
FormatDateTime(CDate(TextBox1.Text),
DateFormat.GeneralDate)
Response.Write(DateAdd(DateInterval.Day, 1,
ds))

It gives the same err cant Convert string  to Date
Value.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Conversion of Date Or get search suggestion and latest updates.


Tagged: