J
John
Hi
I have a simple requirement but finding it very difficult to implement
correctly.
I have a datetimepicker, all what i want to do is simply to get the string
day name of the selected date, for example, Thursday.
WeekdayName(DateTimePicker1.Value.DayOfWeek + 1) does not work if you set
the default country to say France on your pc as the day that is returned is
one day off. It obviuosly has something to do with the first day of the
week, but i don't know how to fit it all together so it works correctly
whatever country you set your pc to in the regional settings
I have a simple requirement but finding it very difficult to implement
correctly.
I have a datetimepicker, all what i want to do is simply to get the string
day name of the selected date, for example, Thursday.
WeekdayName(DateTimePicker1.Value.DayOfWeek + 1) does not work if you set
the default country to say France on your pc as the day that is returned is
one day off. It obviuosly has something to do with the first day of the
week, but i don't know how to fit it all together so it works correctly
whatever country you set your pc to in the regional settings