D
Drygast
I have a form where I would like to get the todays date and when the date is
15 or less I would like to assign a textfield the last date of previous
month
and when the date is larger then 15 I need to set the textfield to the 15:th
of present month....
The code is wrong I know, but to clearify a little how I'm thinking:
If Date.Now <= 15 Then
txtTo.Text = lastday(Date.Now-1month)
Else
txtTo.Text = date.15
End If
Regards
/Drygast
15 or less I would like to assign a textfield the last date of previous
month
and when the date is larger then 15 I need to set the textfield to the 15:th
of present month....
The code is wrong I know, but to clearify a little how I'm thinking:
If Date.Now <= 15 Then
txtTo.Text = lastday(Date.Now-1month)
Else
txtTo.Text = date.15
End If
Regards
/Drygast