I have an application where I need to output the actual DATE of the month into a textbox.
so I have txt_sat.text = (DatePart("d", "txt_beginning))
where txt_sat is the text box
and txt_beginning stores the actually date (ie. 1/1/2003)
This gives me what I want. The date of the month..(ie. 27, 2, etc)
However I want to date of each day of the week in the same format. I can only get the first day and last day working.
for the dates in between I tried
txt_wed.text= DateAdd("d", 4, txt_beginning))
this does give the correct date but in the format of 12/1/2002
HOw do I make it so that it extracts only the date (in this case the 1???
I think it should be the datepart function but if i use that i get this following error
Additional Information: Argument datevalue cannot be converted to type date
Thanks in Advance
so I have txt_sat.text = (DatePart("d", "txt_beginning))
where txt_sat is the text box
and txt_beginning stores the actually date (ie. 1/1/2003)
This gives me what I want. The date of the month..(ie. 27, 2, etc)
However I want to date of each day of the week in the same format. I can only get the first day and last day working.
for the dates in between I tried
txt_wed.text= DateAdd("d", 4, txt_beginning))
this does give the correct date but in the format of 12/1/2002
HOw do I make it so that it extracts only the date (in this case the 1???
I think it should be the datepart function but if i use that i get this following error
Additional Information: Argument datevalue cannot be converted to type date
Thanks in Advance