createOnlineOrder( ) how can i set set startDate in this function i tried everything but not working

createOnlineOrder( ) how can i set set startDate in this function i tried everything but not working