I know I'm probably missing something incredibly simple, but how can I convert a month name into its integer equivalent (ie: September would be 9)
I'm creating a new date. I've got the year and the day in the correct format. The format for the month needs to be the integer value - and I've only got the month name.
Me.ddlDPMonth.SelectedValue is the value I need converted.
TIA,
Suzanne
I'm creating a new date. I've got the year and the day in the correct format. The format for the month needs to be the integer value - and I've only got the month name.
Code:
New Date(Me.ddlDPMonth.SelectedValue, Me.ddlDPMonth.SelectedValue, 1)
Me.ddlDPMonth.SelectedValue is the value I need converted.
TIA,
Suzanne