0

As i had a datetimepicker function, and i need to iterate through an array which contains dates and then i need to add those dates with additional 15 minutes or 20 minutes based on some conditions,

what i need is , how to pass the array values(dates) to the datetimepicker and to add the minutes to that dates

previously my code was

 $(".addtime").datetimepicker({
 ignoreReadonly:true,
  format: 'LT',
  defaultDate: generateCurrentDate()+' 00:20'
});

as it adding for current date, i need to pass input as params and then i has to add to that , how to achieve this

1 Answer 1

0

string strdt = dateTimePicker1.Text; DateTime dt = Convert.ToDateTime(dateTimePicker1.Text);

you will have the selected Date in datetime format

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.