• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 131
  • Last Modified:

vb input to resolve datetime

I have a workflow website, developed in Visual Studio with Visual Basic.  1 form serves for 4 different types of requests. It had 2 calendar pickers for the start and end dates for a project (which in the other iterations serve as submitted and expected dates).

In the project version of the form, the users complained about having to advance the calendar tool by month and asked for an input field instead.

What are my best options for this?  I'd like to change the calendar tool to an input field (text or?) and leave the calendar tool for use when the form is not submitted for a project.

Would you please guide me to the conversion, do I change it to a text box and then find where I need to convert the text to datetime?  If I change it for one type of the form, can the others still use the picker?

Thank you-
0
urthrilled
Asked:
urthrilled
  • 2
1 Solution
 
Gustav BrockCIOCommented:
Yes, use a textbox. Normally you can have an icon beside it to open the datepicker, should the user prefer this.
To pass the value to a datetime variable, use the Parse method:

DateStart = DateTime.Parse(DateStartEntry.Text)

/gustav
0
 
urthrilledAuthor Commented:
Thanks a bunch!
0
 
Gustav BrockCIOCommented:
You are welcome!

/gustav
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now