DateTime Picker

I have an interactive form where the user has to fill in the date and time of an incident. Is there javascript or FormCalc code availabe in these forums or online that can achieve this? Or is it best to use the Date field object? That allows the user to pick a date from the dropdown, but for the time, the user would have to fill that in manually, which is an outcome I'd like to avoid, if possible. Thank you for any advice or suggestions you may have.

You can write script to log the date and time the form is opened or the form submitted etc..
But if the user wants to fill their own date and time then probably you need to have different controls to capture the input..
Thanks
Srini

Similar Messages

  • Hide / unhide dropdownlist in DateTime Picker

    I am writing an ASP.NET application and using javascript DateTime Picker code (I have found it on the Internet):
    <script type="text/javascript">
    // <!-- <![CDATA[
    // Code begin...
    // Set the initial date.
    var ds_i_date = new Date();
    ds_c_month = ds_i_date.getMonth() + 1;
    ds_c_year = ds_i_date.getFullYear();
    // Get Element By Id
    function ds_getel(id) {
        return document.getElementById(id);
    // Get the left and the top of the element.
    function ds_getleft(el) {
        var tmp = el.offsetLeft;
        el = el.offsetParent
        while(el) {
            tmp += el.offsetLeft;
            el = el.offsetParent;
        return tmp;
    function ds_gettop(el) {
        var tmp = el.offsetTop;
        el = el.offsetParent
        while(el) {
            tmp += el.offsetTop;
            el = el.offsetParent;
        return tmp;
    // Output Element
    var ds_oe = ds_getel('ds_calclass');
    // Container
    var ds_ce = ds_getel('ds_conclass');
    // Output Buffering
    var ds_ob = '';
    function ds_ob_clean() {
        ds_ob = '';
    function ds_ob_flush() {
        ds_oe.innerHTML = ds_ob;
        ds_ob_clean();
    function ds_echo(t) {
        ds_ob += t;
    var ds_element; // Text Element...
    var ds_monthnames = [
    'Jan', 'Feb', 'Mars', 'Apr', 'Mai', 'Jun',
    'Jul', 'Agu', 'Sep', 'Okt', 'Nov', 'Des'
    ]; // You can translate it for your language.
    var ds_daynames = [
    'Sun', 'Man', 'Tue', 'Wen', 'Thu', 'Fri', 'Sat'
    ]; // You can translate it for your language.
    // Calendar template
    function ds_template_main_above(t) {
        return '<table cellpadding="3" cellspacing="1" class="ds_tbl">'
             + '<tr>'
             + '<td class="ds_head" style="cursor: pointer" onclick="ds_py();"><<</td>'
             + '<td class="ds_head" style="cursor: pointer" onclick="ds_pm();"><</td>'
             + '<td class="ds_head" style="cursor: pointer" onclick="ds_hi();" colspan="3">[Close]</td>'
             + '<td class="ds_head" style="cursor: pointer" onclick="ds_nm();">></td>'
             + '<td class="ds_head" style="cursor: pointer" onclick="ds_ny();">>></td>'
             + '</tr>'
             + '<tr>'
             + '<td colspan="7" class="ds_head">' + t + '</td>'
             + '</tr>'
             + '<tr>';
    function ds_template_day_row(t) {
        return '<td class="ds_subhead">' + t + '</td>';
        // Define width in CSS, XHTML 1.0 Strict doesn't have width property for it.
    function ds_template_new_week() {
        return '</tr><tr>';
    function ds_template_blank_cell(colspan) {
        return '<td colspan="' + colspan + '"></td>'
    function ds_template_day(d, m, y) {
        return '<td class="ds_cell" onclick="ds_onclick(' + d + ',' + m + ',' + y + ')">' + d + '</td>';
        // Define width the day row.
    function ds_template_main_below() {
        return '</tr>'
             + '</table>';
    // This one draws calendar...
    function ds_draw_calendar(m, y) {
        // First clean the output buffer.
        ds_ob_clean();
        // Here we go, do the header
        ds_echo (ds_template_main_above(ds_monthnames[m - 1] + ' ' + y));
        for (i = 0; i < 7; i ++) {
            ds_echo (ds_template_day_row(ds_daynames));
    // Make a date object.
    var ds_dc_date = new Date();
    ds_dc_date.setMonth(m - 1);
    ds_dc_date.setFullYear(y);
    ds_dc_date.setDate(1);
    if (m == 1 || m == 3 || m == 5 || m == 7 || m == 8 || m == 10 || m == 12) {
    days = 31;
    } else if (m == 4 || m == 6 || m == 9 || m == 11) {
    days = 30;
    } else {
    days = (y % 4 == 0) ? 29 : 28;
    var first_day = ds_dc_date.getDay();
    var first_loop = 1;
    // Start the first week
    ds_echo (ds_template_new_week());
    // If sunday is not the first day of the month, make a blank cell...
    if (first_day != 0) {
    ds_echo (ds_template_blank_cell(first_day));
    var j = first_day;
    for (i = 0; i < days; i ++) {
    // Today is sunday, make a new week.
    // If this sunday is the first day of the month,
    // we've made a new row for you already.
    if (j == 0 && !first_loop) {
    // New week!!
    ds_echo (ds_template_new_week());
    // Make a row of that day!
    ds_echo (ds_template_day(i + 1, m, y));
    // This is not first loop anymore...
    first_loop = 0;
    // What is the next day?
    j ++;
    j %= 7;
    // Do the footer
    ds_echo (ds_template_main_below());
    // And let's display..
    ds_ob_flush();
    // Scroll it into view.
    ds_ce.scrollIntoView();
    // A function to show the calendar.
    // When user click on the date, it will set the content of t.
    function ds_sh(t) {
    document.form1.dropDownList.display = false; //this line not working
    // Set the element to set...
    ds_element = t;
    // Make a new date, and set the current month and year.
    var ds_sh_date = new Date();
    ds_c_month = ds_sh_date.getMonth() + 1;
    ds_c_year = ds_sh_date.getFullYear();
    // Draw the calendar
    ds_draw_calendar(ds_c_month, ds_c_year);
    // To change the position properly, we must show it first.
    ds_ce.style.display = '';
    // Move the calendar container!
    the_left = ds_getleft(t);
    the_top = ds_gettop(t) + t.offsetHeight;
    ds_ce.style.left = the_left + 'px';
    ds_ce.style.top = the_top + 'px';
    // Scroll it into view.
    ds_ce.scrollIntoView();
    // Hide the calendar.
    function ds_hi() {
    ds_ce.style.display = 'none';
    document.form1.dropDownList.display = true; //this line not working
    // Moves to the next month...
    function ds_nm() {
    // Increase the current month.
    ds_c_month ++;
    // We have passed December, let's go to the next year.
    // Increase the current year, and set the current month to January.
    if (ds_c_month > 12) {
    ds_c_month = 1;
    ds_c_year++;
    // Redraw the calendar.
    ds_draw_calendar(ds_c_month, ds_c_year);
    // Moves to the previous month...
    function ds_pm() {
    ds_c_month = ds_c_month - 1; // Can't use dash-dash here, it will make the page invalid.
    // We have passed January, let's go back to the previous year.
    // Decrease the current year, and set the current month to December.
    if (ds_c_month < 1) {
    ds_c_month = 12;
    ds_c_year = ds_c_year - 1; // Can't use dash-dash here, it will make the page invalid.
    // Redraw the calendar.
    ds_draw_calendar(ds_c_month, ds_c_year);
    // Moves to the next year...
    function ds_ny() {
    // Increase the current year.
    ds_c_year++;
    // Redraw the calendar.
    ds_draw_calendar(ds_c_month, ds_c_year);
    // Moves to the previous year...
    function ds_py() {
    // Decrease the current year.
    ds_c_year = ds_c_year - 1; // Can't use dash-dash here, it will make the page invalid.
    // Redraw the calendar.
    ds_draw_calendar(ds_c_month, ds_c_year);
    // Format the date to output.
    function ds_format_date(d, m, y) {
    // 2 digits month.
    m2 = '00' + m;
    m2 = m2.substr(m2.length - 2);
    // 2 digits day.
    d2 = '00' + d;
    d2 = d2.substr(d2.length - 2);
    // DD.MM.YYY
    return d2 + '.' + m2 + '.' + y;
    // When the user clicks the day.
    function ds_onclick(d, m, y) {
    // Hide the calendar.
    ds_hi();
    // Set the value of it, if we can.
    if (typeof(ds_element.value) != 'undefined') {
    ds_element.value = ds_format_date(d, m, y);
    // Maybe we want to set the HTML in it.
    } else if (typeof(ds_element.innerHTML) != 'undefined') {
    ds_element.innerHTML = ds_format_date(d, m, y);
    // I don't know how should we display it, just alert it to user.
    } else {
    alert (ds_format_date(d, m, y));
    // And here is the end.
    // ]]> -->
    <!--DateTime Picker code-->
    </script>
    Also I have to use DropDownList below this DateTime Picker. In the IE 6.0 "DropDownList" control comes in front of this calendar (this is a known problem in IE 6.0, that is form items appear infront of all other).
    And now I am trying to hide the form items as the DateTime Picker is shown and display them again as the calendar is closed. For this action I am using:
    document.form1.dropDownList.display = true / false in the "function ds_sh(t)" and "function ds_hi()"
    but its not working (not hide or unhide, no action).
    Maybe somebody could help me in this situation.
    Thanks in advance.
    br,
    Forumaic

    I replaced these to lines that not worked in the DateTime picker with this one:
    var obj = document.getElementById('ddlTest');
        obj.style.visibility = "visible";
    var obj = document.getElementById('ddlTest');
        obj.style.visibility = "hidden";And now everything working like it should be.
    Forumaic.

  • DateTime Picker from WPFToolkit.Extended

    has anyone tested out with the DateTime Picker from WPF Extended?
    (a) There is a Up (Increment) and Down (Decrement) arrow.
    Whenever, I click either the Up or Down arrow a second time, it will give the error as below:
    When I have set the Date and Time, and press either the Up or Down arrow, it will give the same error too.
    How to prevent it?
    System.ArgumentOutOfRangeException was unhandled
      HResult=-2146233086
      Message=Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
      Source=mscorlib
      ParamName=index
      StackTrace:
           at System.ThrowHelper.ThrowArgumentOutOfRangeException()
           at System.Collections.Generic.List`1.get_Item(Int32 index)
           at Microsoft.Windows.Controls.DateTimeUpDown.UpdateDateTime(Int32 value)
           at Microsoft.Windows.Controls.DateTimeUpDown.OnIncrement()
           at Microsoft.Windows.Controls.Primitives.UpDownBase`1.DoIncrement()
           at Microsoft.Windows.Controls.Primitives.UpDownBase`1.OnSpin(SpinEventArgs e)
           at Microsoft.Windows.Controls.Primitives.UpDownBase`1.OnSpinnerSpin(Object sender, SpinEventArgs e)
           at Microsoft.Windows.Controls.Spinner.OnSpin(SpinEventArgs e)
           at Microsoft.Windows.Controls.ButtonSpinner.OnButtonClick(Object sender, RoutedEventArgs e)
           at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
           at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
           at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
           at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
           at System.Windows.Controls.Primitives.ButtonBase.OnClick()
           at System.Windows.Controls.Primitives.RepeatButton.OnClick()
           at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonDown(MouseButtonEventArgs e)
           at System.Windows.Controls.Primitives.RepeatButton.OnMouseLeftButtonDown(MouseButtonEventArgs e)
           at System.Windows.UIElement.OnMouseLeftButtonDownThunk(Object sender, MouseButtonEventArgs e)
           at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
           at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
           at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
           at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
           at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
           at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
           at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
           at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
           at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
           at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
           at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
           at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
           at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
           at System.Windows.Input.InputManager.ProcessStagingArea()
           at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
           at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
           at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
           at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
           at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
           at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
           at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
           at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
           at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
           at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
           at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
           at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
           at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
           at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
           at System.Windows.Threading.Dispatcher.Run()
           at System.Windows.Application.RunDispatcher(Object ignore)
           at System.Windows.Application.RunInternal(Window window)
           at System.Windows.Application.Run(Window window)
           at System.Windows.Application.Run()
           at TestDateTimePicker.App.Main() in C:\DriveD\TESTS4WORK\TestDateTimePicker\obj\x86\Debug\App.g.cs:line 0
           at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
           at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
           at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()
      InnerException:

    Hi,
    I’m sorry for the issue that you are hitting now.
    This control is third party, for this issue, I recommended to consult the control provider directly, I think they can give more precise troubleshooting.
    https://wpftoolkit.codeplex.com/discussions
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Any good Datetime picker control exists?

    Why doesn't Flex provide built-in Datetime picker? Anybody can recommend a good Datetime picker to use in both datagrid control(itemRenderer/itemEditor) and Form control? Thanks.

    Try this link http://blog.georg-graf.com/archives/301

  • SSRS 2008 DateTime picker to UNIX/EPOCH field

    Im trying to write a report that presents data based on a date range(selected by the person running the report) using SQL Server reporting.
    I build the start date and the end date as parameters and as a selectable date/Time data type and create a dataset with the following simple query:
    SELECT callclass AS CallType, COUNT(callclass) AS Total
    FROM opencall
    WHERE (companyname = @name) AND (status <> 17) AND (logdate >= @StartDate) AND (logdate <= @EndDate)
    GROUP BY callclass
    The problem I have is that the logdate field is stored as an EPOCH/UNIX value and therefore the report does not run. How can I get the date/time picker to convert the selected value into an epoch string and return the correct data for the date range selected?
    Help muchly appreciated.

    Hi  Josh/Sylove1
    I'm trying to do exactly the same thing (and I think using the same application, judging by the field names) but keep getting a syntax error notification.
    Is the syntax below correct?
    SELECT callclass AS CallType, COUNT(callclass) AS Total
    FROM opencall
    WHERE (companyname = @name) AND (status <> 17) AND (logdate BETWEEN DATEDIFF(second, '1970-01-01 00:00:00', @StartDate) AND DATEDIFF(second, '1970-01-01 00:00:00', @EndDate))
    GROUP BY callclass
    Whats the datatype of @StartDate and @EndDate?
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to use Microsoft DateTime Picker ActiveX control in Forms 6i?

    Does anyone have idea on how to use Microsoft Date-Time Picker ActiveX component in Forms 6i? Please give me coding examples for using this control to retrieve & store date at the backend.
    Regards

    when u load activex (spreedsheet) the corresponting menu also u can see when u run through which also you can set the attribute values
    im also check the same it is working
    sorry i saw it on design time
    kansih
    Edited by: Kanish on Apr 28, 2009 2:54 AM

  • XML Forms & Document Lifetime question?

    Hi All
    I am creating an xml form and want to use the 'ValidTo' property for document lifetime. I have created the browser and can get the date picker, however the 'ValidTo' requires date and time.
    How on the xml for can you user a dateTime Picker or is there another way to do this?
    Thanks for your help!

    Hi Phil,
    If the time is not required, you can specify a default time. See http://help.sap.com/saphelp_nw04/helpdata/en/b4/fd2c407586ea01e10000000a155106/frameset.htm for more details.
    Unfortunatelly, a comfortable time picker is not available which means that a user needs to enter the time manually if not the default time should be taken.
    Kind regards,
    Roland

  • HTMLDB 2.0 Login page and FireFox - incompatible ?

    Pressing the "Login" button on Login Page doesn't make any action in Firefox 1.06, but works in Internet Explorer. I just upgraded from 1.6 to 2.0 and immediatly faced with this issue.
    Anyone tried version 2.0 with Firefox ?

    The error is very unconsistent. Sometimes i get 404, sometimes i don't.
    It happens to me all the time everywhere in the application pages. It can be link, tab or item (like Datetime picker) - sometimes results in 404, sometimes not. I tried increasing connection pool in Apache - doesn't help. 1.6 worked just fine.
    Today i will definitely revert back to version 1.6
    Message was edited by:
    Quadro

  • To enter time in textbox?

    hello.....
    I want to  enter only time(hh:mm:ss AM/PM) in a textbox,or select a time(hh:mm:ss AM/PM) from any input controls.Please give a solution for the same.

    Hi Nirmal,
    You can check out these links ...Also source code included...:)
    http://carrythezero.net/blog/2009/06/02/flex-a-date-time-component/
    http://riahut.com/flex/select-date-and-time-datetime-selector-component-flex
    http://joelhooks.com/2008/10/11/flex-date-and-time-datetime-picker-control/
    Thanks,
    Bhasker

  • Creating a Custom event for my Component

    Hi All,
    im currently working in a swing component, and i would like to know how to give to my component the ability to react to some user changes.
    Basically im creating a DateTime Picker using NetBeans, im able to see any new property justed created on the Property Editor but i would like to know how to add my custom events on the Event Editor as well, i.e:
    monthChanged - (when the user just change the month dropdown)
    yearChanged - (when the user just change the year box)
    dayChanged - (when the user just change the selection day)
    Thanks in advance

    Thanks, i just found it also here:
    http://www.exampledepot.com/egs/java.util/CustEvent.html
    i need to define the following class:
    - Custom Listener extending the EventListener interface
    - Custom Event extending EventObject class
    and then finally add the corresponding:
    addXXXListener
    removeXXXListener
    fireXXXEvent
    in my component.
    This work Great in the NetBeans GUI Builder.
    Thanks,

  • Tracking the Date time changes in DatePicker control using Javascript/JQuery

    I have two date picker controls(Start Date nd End Date) in my SharePoint Calendar list. And I need to calculate the Hour difference on the fly and show it in a text box.
    Can anybody help me to achieve this task using client side scripting?
    Thank You in Advance.
    Juli

    Hi sravankumar1107,
    According to your description, my understanding is that you want to figure the difference between start date and end date and then you want to place the value in a text box.
    Here is a code snippet for your referecnce:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">
    </script>
    <script type="text/javascript">
    function initControl()
    var txtstartDate = $("#" + $("label:contains('Start Time Date')").attr("for")).val();
    var txtstartHour = $("#" + $("label:contains('Start Time Hours')").attr("for")).val();
    var txtstartMinute = $("#" + $("label:contains('Start Time Minutes')").attr("for")).val();
    var txtendDate = $("#" + $("label:contains('End Time Date')").attr("for")).val();
    var txtendHour = $("#" + $("label:contains('End Time Hours')").attr("for")).val();
    var txtendMinutes = $("#" + $("label:contains('End Time Minutes')").attr("for")).val();
    var starttime = new Date(txtstartDate +" "txtstartHour +":"txtstartMinute);
    var endtime = new Date(txtendDate +" "txtendHour +":"txtendMinutes);
    var diff = endtime - starttime;
    var diffSeconds = diff/1000;
    var HH = Math.floor(diffSeconds/3600);
    txtHour.val(HH);
    </script>
    More information for your reference:
    http://stackoverflow.com/questions/21844281/i-am-using-datetime-picker-and-want-that-my-start-and-end-date-must-have-differe
    http://blog.pentalogic.net/2009/09/setting-default-duration-for-new-calender-events/
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Php input date/time as timestamp with timezone

    This is a nightmare!!!!
    I have numerous databases, all of which use timestamp format
    date/times, which are easy to echo according to user timezone
    preferences using putenv ("TZ=".$_SESSION['MM_UTZ']); and echo
    date($_SESSION['MM_UTF'], ($whatever));
    The only problem is, I have only used these for stamping
    "date created" or "date edited" values using Time()
    What I am trying to achieve is:
    User 1 in UK enters date and time, using a javascript
    datetime picker (which normally enters data into field in Y-m-d
    H:i:s) and the php inserts this in timestamp format according to
    timezone.
    User 2 in US looks at date and time and this is echo'd
    according to his timezone.
    Sounds simple...
    I have managed to get so far with the new DateTime object
    which incorporates the user timezone preference ($utz)
    $ndttime= new DateTime($timefield, new DateTimeZone($utz));
    I can then echo this effectively using
    echo $ndttime->format('$utf'); ($utf being user timeformat
    preference)
    My stupid problem is trying to get the $ndtime into the
    database!!!!
    I know this sounds ridiculous but I use the DW insert wizard
    which only uses values from a form and if I echo $ndtime into a
    hidden field, it doesn't process this value in time.
    I attach the current insert script.
    Is this simple?
    Heeeeelp.

    quote:
    Originally posted by:
    AXEmonster
    how does this format when you echo to the page
    echo $ndttime->format('$utf');
    This will echo as a date/time object - i.e. Y-m-d H:i:s, but
    the $utf variable is a session variable with user time format
    preferences, so it could be D, d/m/Y H:i:s or m-d-Y H:i:s
    etc.

  • Do Flex has rich set of components(UI or non-UI)/feature?

    Hi all,
      i have some question about flex and hope you could help me:
      1. is there any good collection of UI controls/components ???(e.g. datetime picker, paging
          datagrid..)..i found some free/opensource sample, but they buggy, ugly or
          non-flexible(e.g. http://code.google.com/p/flex-component-library/, http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1784 022)...
       2.  is there any 'large'/long-running vendor selling flex UI components? in some project i use
            .net, there are infragistic, telerik...etc ...
            but for flex, i search the web, seems no such software company...
        3. could you recommend some books for writing good custom UI components?
            (in case there is no vendor/no suitable controls, i need to write my own)..
         thank you.
    ppk luk

    Hi,
      as the build-in component is far from enough and i don't want to build and maintance these components by myself.
      so i am looking for a more comprehensive set to UI components, both free or commercial are ok.
      but, what i meet is that i can't find such components in the market!!
      so, i wonder if i can rely on Flex to build a usable application for in house use.
      as i said b4, there is no:
      1. datetime picker
       2. paging table
      3. keyboard mnemonics
      4. text field / area no redo/undo
      5. no titled border (i.e. a control to surround another control (canvas?) and give a text description)
      i know there are many many other fancy control available in the web, but i can't (or i don't know where to) find these common UI component.
      as i am new to flex, i don't want to build all the controls i needed, i would rather buy them (of course at reasonable price!).
      again....anybody know such kind of popular/well-know UI component suite ? (especially with the above controls i mention)
      thank you.
    ppk luk

  • Date picker not showing for datetime type in advanced search page

    Hi,
    I have an advanced search page in my SharePoint 2013 site. There is a property which is of type datetime. For that I'm not getting a date picker. I don't know why this is not working. It is showing the date picker in SharePoint 2010 but not in 2013. Can
    anyone help me on this? Thanks in advance.
    Thanks,
    Jawahar
    Im searching more abt me...........

    A date picker was never supported in Advanced Search.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Datetime parameter from stored procedure

    <p>I have a report written in CR10 which uses a stored procedure as the datasource. The stored procedure has 3 input parameters, two of which are datetime data types. When the crystal report is run, it prompts the user for the 3 parameters & runs just fine except...</p><p>For the date parameters, it prompts the user to enter a time as well. In previous versions of Crystal, parameters that were datetime data types in the stored procedure were just prompted for the date when the calling crystal report was run.</p><p>I attempted to edit the parameters in the report, but the "Value Type" is grayed out (I assume since the parameter is associated with the stored procedure, rather than being a user defined parameter within the report).  These date parameters are used in a BETWEEN statement in the stored proc, so if the user just enters a date but accepts the default time, the returned data gets flakey due to the addition of the time value passed by the parameter.</p><p> I tried setting a default value for the time, but I have to enter a date along with the time, which the report then uses as the default. The user then has to uncheck the "Pick from defaults" checkbox in order to enter their own date. This is really unwieldly for the end user, especially when they were previously able to just enter a date and not have to be concerned with a time at all.</p><p>Does anyone have suggestions on working around this issue? </p><p>Thanks in advance...</p>

    <p>You mention that you are using CRW version 10 for this.  What&#39;s the data source you are reporting against (you mention a stored procedure - but are you running against Oracle, SQL Server, DB2?).  Are you connecting natively or using ODBC? <br /></p>

Maybe you are looking for