I want to call the
DateAndTime.DatePart()
Method in VB from C#, i have correctly added the reference to the VB dll, etc... but when i call this function like this
DateAndTime.DatePart(DateInterval.Weekday,DateTime .Now,FirstDayOfWeek.Sunday,FirstWeekOfYear.Jan1)
or
DateAndTime.DatePart(DateInterval.Weekday,DateTime .Now)
i get
error: arguments do not match parameters for function 'DateAndTime.DatePart'
but they do match... just as MSDN says... http://msdn.microsoft.com/library/de...ctdatepart.asp
please help... thanks...