I collect a date from a DatePicker and minute/hour from dropdowns as follows:
CommencedTime: DPDate1.SelectedDate & (DDHourValueBC.Selected.Value & "." & (DDMinuteValueBC.Selected.Value)),
works fine but when I go to try patch it back to the SP list (datetime field) I'm running into problems..
Commenced:DateValue(CommencedTime)
saying it doesn't recognise it as a date/time value
I've tried numerous variation of the above also. My problem is that the date I need is in one Date picker and the hours and minutes are in separate DropDowns. If I leave out the Datepicker all together and just try to patch back the results from the drop down those work fine for the hours/minutes but obviously the date is wrong... Have also tried DateTimeValue( infront.
any suggestions. Should I be collecting the full date and time at the collection level or only when I go to patch it back? because the date field is used on it's own anyway in the collection..
TIA