MVC 3: Adding a time to an Event Start Date - asp.net-mvc-3

In my ASP.NET MVC 3 application I have a section to add an event which has a start date and an end date. I am using the jQuery DatePicker for these two input boxes which works fine.
My question is how can I put a time next to these dates? So that in the database the start date will read (for exampls) "28/06/2011 11:24AM". My intitial thought was to put a text box to the side of the date input box in which the user could enter the time, and then the time could be added to the end of the date field. Almost like StartDate = StartDate + Time
Any help would be greatly appreciated

You may find the following extension to the jQuery UI Datepicker useful. And yet another one. And another. And one more.

Related

Kendo datepicker randomly not showing calendar to change date

I have 2 Kendo UI date pickers on my page to select the start and end date of a date range. On random page loads in these 2 date pickers, one becomes not responding. That is, the calendar is not showing up when clicking on the icon to select a date. This issue mostly happening in chrome.
This issue is resolved. This was due to a code issue where controls are binding 2 times. Corrected the code and binding bring down to 1 time and the issue got resolved. So anybody facing a similar issue please validate this scenario too as a step to resolve.
Thank you very much.

UIPath - Find OCR text position and selecting a day from the calendar

I was trying to grab a website calendar from UiPath. But when I use the Find OCR Text Position or Click OCR text activity in the UiPath Software, it will not give me the exact date that I want to select.
I want to do one thing only: I need to determine today's date, select the date, and press OK.
I figured out how to calculate today's date:
But now I only have to do, is selecting numbers, Please help me to figure this out. Thanks in advance.
Since we don't know much about the front-end framework you're planning to use, here's a generic approach using a relative selector. Note that I hard-coded the day (15), and I didn't check whether the correct month or year is displayed, but this should at least get you started.
My approach uses a simple click activity with the variable day being part of the selector. There's another click activity associated with opening the picker in the first place, but as said - this is just related to the front-end framework.
It looks like DateTime_Today is a DateTime type variable in your screenshot, which has a very useful ToString method see documentation on it here: https://learn.microsoft.com/en-us/dotnet/api/system.datetime.tostring?view=netframework-4.7.2 which will allow you to extract the number that you are looking for.
You would need to create a string variable and assign the value to DateTime_Today.ToString("dd") to get only the day of the month.
The issue with this approach, however, is then creating the image for the OCR to look for in the calendar. I think a more reliable way of approaching this issue would be to determine what date is selected by default when clicked and then sending some combination of hotkeys such as tab and the directional keys to get to the date which is required for the automation. A get text or get attribute activity might also help determine what date is currently selected, so you would then know how many boxes will need to be traversed to get the required selection.
If you are still having issues please provide a link to the page which you are trying to automate as well as some (sanitized) code snippets containing what you have already tried and we will be able to assist you further. Cheers!

Telerik Grid with rage date filter but just one DatePicker

I have this Telerik RadGrid with a date column filter, I'm not happy with the rage filter using 2 calendar datepickers, {edit} to much with or height for that column I have no intentions of validate or restrict dates. {end edit}. Is there a way of solving this with 1 calendar but still using Telerik controls?
The Best way to pick two date (From/To) is to have 2 DatePickers.
There is no logical work around to this, and it's "KISS" .
If you have one DatePickers.
That first fire select event get date "from" and second get date "to".
How can this be user friendly ?
If you enter 1rst date.
Then want to modify the 1rst date Without setting the 2nd date.
How will you do ?
The real question is why dont you want 2 Date picker ?
- Is it because it to big to display it nicely in the FilterBar?
- If it's a User need, try to improve the logic behind the DatePiker.
Perhaps the Date is not random ? And can be done with a RadSlider?
Or they select a date and get for range -3 / +3 range.
There is no simple solution, because what you need and what you want are not clear.
edit:
If you need to have 2 input text with only one single calendar icon, You will end with the same problem how do they chose witch input they wanna set the value in?
I hope this will help,
Regards,
Pierre
The best way for use only one date picker control is create own logic for this filter using one datapicker and something for display your range filter (label).
First fire select event get date "from" and second get date "to".

Block previous days from being display in DatePicker

I've a problem where I want to block the previous date from being display in DatePicker tool of Toolkit or you can say that I want to apply some limit to the dates.
For example:
If today's date is 15/7/2013 then by clicking on DatePicker control it's should not display the dates previous to 15/7/2013.
Its should show the next 30 days but not beyond that.
I'll be thankful to all who suggest their answers and opinion.
I don't think you can do that. However, you can download the source and modify it to add your requirements. The source code is pretty straightforward.

GWT Date Time Component

Is there a GWT Date Time Component?
Note: I am already making use of the Date - Calendar component.
I want to have time as an additional input.
Do you mean your using the GWT DatePicker widget or you are looking for something like that?
I got what I wanted, the Date Time Calendar Picker is right now in the Incubator.
http://code.google.com/p/google-web-toolkit-incubator

Resources