Still not quite getting it sorry.
I have these and it is pulling in the data correctly:
Dim beginDate as Date = Request.Form.Ge tValues("date") (0)
Dim beginTime as Date = Request.Form.Ge tValues("sTime" )(0)
Now I just need to combine those two values into one varible, I didn't quite
understand that code.
Is there a way to just do something like
beginDate = beginDate + beginTime
or
beginDate = beginDate & beginTime
I also looked into the .append but I am guessing since I am dealing with a
date vs. a string this won't work???
This code is doing some conversion for me, but this is where I already need
the combined data:
writer.WriteLin e("DTSTART:" &
beginDate.ToUni versalTime.ToSt ring("yyyyMMdd\ THHmmss\Z") )
I hate to be a pain, but could you try (using my variable) shoot some more
code at me I can play with??
Thanks a million!!!
"re****@communi ty.nospam" <ma**********@g mail.com> wrote in message
news:11******** *************@l 41g2000cwc.goog legroups.com...
FYI. You should be using ASP.NET Server controls and thus your ASPX
markup should look something like this. Please note that naming
convention can vary i just prefer Hungarian notation because it makes
long term maintainability alot easier.
<asp:TextBox Id="txtBeginDat e" runat="Server" />
<asp:TextBox Id="txtBeginTim e" runat="Server" />
Your codebehind should look something like this.
String strBeginDate = txtBeginDate.Te xt.Trim() + " " +
txtBeginTime.Te xt.Trim();
then you could say
DateTime FullBeginDate = DateTime DateTime.Parse( FullBeginDate); or
use a ParseExact variant, depending upon your needs.
Hope this helps to clear some stuff up and open some other avenues.