Default Time in Data Picker Calendar

Hi All
I'm using one of the new Date/Time picker items in Apex 4.0.2. When the user clicks the Calendar image the Calendar is displayed with the current date and time. However I would like it to display by default the current date and a time of 1000hrs. Is there anyway to do this?
Thanks
Shunt

This kind of works, but there must be a better way?
$('#P58_DATE').datepicker("option", {
   beforeShow: function(pDateText, pInst) {
      if (!$(this).val()) {
        $(this).val('&P58_TODAY. 10:00');
});http://apex.oracle.com/pls/apex/f?p=579:58

Similar Messages

  • How to implement a Date Picker (Calendar) as a LOV in Portal Form?

    I have a form, which will input date from user, and I also have javascript calender.
    How to implement a Date Picker (Calendar) as a LOV in Portal Form? Do I need to choose POPUP and LOV for Date?
    Instead of typing the Date within a Portal form, a popup Calender that will allow user to Pick a date.
    Please help anyone!!

    Once you have the JavaScript and have added it to your form, you need to the the following. First off, you need to be able to customize the HTML code for the form (i.e. choose custom for form type when creating the form). Once you do that go into the custom layout to customize your HTML code. Find the field you want to add the date picker to. It will be <#your_field_name.ITEM#>
    Paste this code after it:
    <a href="javascript:show_calendar('forms[0.elements[16');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src="the source of your image file" width=34 height=21 border=0></a></TD>
    You will have to play around with the forms[0].elements[16]. 16 is what date field is set to. However your will differ, so just play with it.
    Hope this helps.
    Martin

  • Date Picker Calendar Question

    For the last several days I am looking for a way to incorporate into my php page (developed with Dreamweaver CS5) a date picker /Calendar (like the ones that the travel agencies have for example) that allows a user to enter in a input text field the date or if he/she chooses to click a button that will show a calendar (hopefully aligned with the text field)  - then the user should be able to click on  a selected date: action that triggers the dissapearance of the calendar and the selected date to be shown in the text field: This seems quite basic - but for some reason I cannot find a widget of anything that works this way.
    Any help is very much appreciated.
    Carla

    http://jqueryui.com/demos/datepicker/
    Gotta love jQuery!
    There is also an extension on the Adobe Dreamweaver Exchange [HERE]
    But I haven't had a chance to test this one and some of extensions are little out of date and have IE8 - so test to be sure.
    Hope this helps!
    Lawrence   *Adobe Community Professional*
    www.Cartweaver.com
    Complete Shopping   Cart Adobe Dreamweaver
    Stay updated - Friend, Follow, and Bookmark!
    http://www.twitter.com/Cartweaver
    http://www.cartweaver.com/facebook
    http://blog.cartweaver.com

  • How to Resize the default date picker calendar

    Hello Experts,
    SAP CRM web UI shows a date picker as follows for populating fields of type date.
    We noticed a strange issue that for months like January 2015 , the width of the date picker is lesser than what is shown for November 2014.
    As you can see in the following snapshot , the dropdown icon of the second field is hidden when the month shown is November 2014.
    This an issue because of the different sizes shown for different months , users would have to move mouse pointer when they to move to next months by clicking on the next arrow icon.
    Any tricks to fix the width of the date picker will be really appreciated.

    Hi Praveen,
    You can try following tricks -
    1. Go to SE80, search for BSP Application = 'thtmlb_styles'
    2. under Pages with Flow Logic  - we have one CSS file called "thtmlb_core_stand.css"
    3. In this file try changing width of method call ' #thtmlb-calendar-container ' to 150px  like shown below.
    #thtmlb-calendar-container {
         display:                none;
         position:               absolute;
         width:                  150px;
    hope it helps.
    Best Regards,
    Sandeep Kumar B

  • Default value of date picker not showing in sql query

    Hi,
    I have a tabular form page with a query similar to the following:
    select emp_name, salary from emp_table where trunc(hire_date)=trunc(to_date(:P42_START_DATE))
    where P42_START_DATE is the name of a date picker item.
    I set the source type of the date picker to be "Only when current value in session state is null" and the value to be "select trunc(next_day(sysdate,'MON')-7) from dual;" - basically the monday of the current week. I set the sequence of the date picker to be 5, and the sequence of the region to be 10. Now, when I open this page, no data gets pulled. I checked the page source, and the value of the date picker input is being set to "17-NOV-2008", but it somehow isn't reflected in the sql query.
    Data does get retrieved if I manually set the date in the date picker, but I'd like it to default to the monday of the current week. What am I doing wrong?
    Thanks

    nope, still same problem.
    I used javascript alerts to help debug, and here might be some useful information.
    The computation to set the value of :P42_START_DATE is set to run "before header", but when I put this following javascript in the header:
    <script language="javascript">
    var c = $v('P42_START_DATE');
    alert(c);
    </script>
    the alert box is blank (ie :P42_START_DATE is empty). Putting the same exact script in the footer gives 24-Nov-2008 in the alert box. Now, the SQL query is run sometime after the first alert and before the second alert, I believe. Why would the value of :P42_START_DATE not be getting set at the correct time?
    P42_START_DATE is a date picker item that belongs to the region SCHEDULE (which is where the sql query is). I set the sequence of the region to 10, and the sequence of the date picker and computation to be 5 and 6. Even so, does this mean that the sql query is executing before the call to the computation, because the region needs to be created before any items can be created that belong to the region?

  • Default time in Date time field

    Hi,
    I have a date-time field. I want to default the time when a user selects the date.
    Currently when a user selects the date its takes the current system time. i would like it to take the time as 11:00.
    Can you please help me on this.
    Regards,
    Boris

    Hi,
    Check below links:
    Time picker along with Date picker
    Time as User input
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                   

  • Display in a date picker (calendar)

    Hello,
    I have a date picker when i press a button, to choose a date from calendar. But some months are displayed with the year too, like November 2009, June 2009, and in this image i uploaded, in case of September only the month is displayed.. i don't know why the year does not appear. And not just in case of September, but December too.
    Any help?
    Thanks!
    I use Developer 2000 (Forms 5)
    Edited by: Roger22 on 22.09.2009 09:39

    Maybe it is just because there is no space enough to display both month and year. Is it possible to increase the width of the calendar box ?
    Francois

  • DHTML Date Picker (Calendar)

    I recently ran across a thread that linked to Guido Zeelen's DHTML date picker. The code for this calendar can be found here:
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:::::P54_ID:2102
    I have downloaded the files mentioned, but the directions are a bit confusing to me. Can someone walk me through setting up this better calendar?
    Thanks!
    BoilerUP

    Hi,
    Did you read through all the instructions at -
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:1798771197057304::::P54_ID:2102
    also the forum thread here might be helpful to you -
    Re: DHTML Calender in a Form Table
    but the directions are a bit confusing to me.What are you finding confusing specifically?

  • Date Picker Calendar Show Wrong Date Information Dec/Jan 2014-2015

    When using a Date Picker, the offered Date for January 1st 2015 is a Friday!  It supposed to be a Thursday!
    You can move to February, and return to January again, and it will correct itself.  
    This happens in Office 2007 and 2010
    What's gone wrong?
    IT will also offer the wrong December dates.
    Is there a fix please?

    Re:  Bad date
    Some remote possibilities...
      Your computer's clock has an incorrect date
      The wrong year is entered somewhere as the first day in 2016 is a friday.
      You have the wrong date system selected 1900 vs. 1904 or vice versa.
      You have a 3rd party (non MS) Date Picker that is programmed incorrectly.
      You have Office 2013 (nothing seems to work there)
    There are alternatives and I offer one for Excel...
    a free excel add-in date picker ("Get Your Own Date")
    (no ads, no trackers, no cookies, no registration)
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2
    Jim Cone
    Portland, Oregon USA

  • Selecting Time in Dashboard Promt's Date Picker (Calendar)

    Hi
    Is it possible to choose time as well as date in dashboard promt's calendar object? Currently, users select the date from the calendar and have to write down the time.
    Thanks
    Özgür

    Hi ozgur,
    You can go through this link for date time
    [http://kpipartners.blogspot.com/2009/07/comparing-arbitrary-time-periods.html]
    Re: Changing the default date time in dashboards
    Hope it helps you.
    Best Wishes,
    Kranthi.

  • How to disable the future dates in Date pick calendar - SQL Server Reporting Services

    Hi All, 
             I have a scenario to run the report only for the Past days, and i have datepick calendar as a parameter for selecting Start Date and End Date. I want to control the Users by not to select the Future Dates in the End Date. In Other Words, the user should not select beyond the Current Date,
    Is there any way for me to control it. Advance Thanks
    Regards,
    Sundarrajan.

    Hi
            Here is a solution for ur problem: put the below code in the script, and the add
    OnClientDateSelectionChanged="checkDate"
    in the calenderExtender... u ll get the answer nicely.. Happy coding..
    <script type="text/javascript">
    function checkDate(sender,args){
    alert("You cannot select a day greater than today!")
    sender._selectedDate = new  Date();
    sender._textbox.set_Value(sender.selectedDate.format(sender._format))
    }</script>

  • How to restore the default time and date?

    HI i have encountered with a problem very i have got in screen, one date field and input field TEXT Field name  i have give as the <tablename-<tablefield>> like ZFIR-DATES reason giving name like this is i want to save the date in a table ZFIR when i click save. When i am clicking save date is storeing but the problem is date is not displaying defaultly.....on the screen
    codeing part..
    DATE(10) TYPE C.
    before output screen no 100
    DATE = SY-DATUM.
    Thks

    The format of the variable on the screen needs to be the same as the global definition - if it's a date field on the screen then you should have something like
    data:
      g_date     like sy-datum.  "naming convention g = global
    and g_date on your screen as a date-type field, then in your PAI where you store ZFIR
    ZFIR-DATES = g_date.
    Jonathan

  • Date picker calendar modification

    Is it possible to limit number of years presented in the select list of datepicker calendar? If yes, is it an option for dynamic shift, for example show +/- 10 years from current year? Version 2.0.
    Thanks.

    Hi Marina,
    This is not possible in HTML DB / Application Express.
    Joel

  • Date Picker visbile by default in Apex.

    Hi All,
    I have created two date pickers by default i will be dsiplaying only one, but when they click on that link i wil diplsay the other date picker report.
    I have created demo in my application but that is showing fine in 4.0 version but when i had tried in lower version 3.0 the date picker calendar is showing by deafult. But no erros are dsiplayed in script.
    Can you please let us know how we can hide the samll part of calendar icon.
    Here is an examplei had created whcih is replaicted what i had done im original application.
    workspace-apex_demo_bosu
    [email protected]
    password-bosuseshu
    URL is http://apex.oracle.com/pls/apex/f?p=19104:1:246873615402401:::::
    Thanks,
    Anoo..

    I realized you were talking about a form with an "Automatic Row Fetcher" after I had clicked submit;
    Let me see if I can understand this:
    you have a date column in your table (I hope it is a date)
    you have created a "form on a table" page that has an Automatic Row Fetcher process in it.
    If the row you are displaying has a value for the date column, you want that value to show up in the Date Picker item type (this should already happen)
    If the row you are displaying does not have a value, you want the Date Picker to have a default value of sysdate. (eg a NEW row of data)
    If #3 is not happening, let us know.
    #4 just requires a process that runs after the Automatic Row Fetcher.
    eg
    begin
      if :P11_DATE is null
      then
        :P11_DATE := to_char(sysdate, 'DD-MM-YYYY');
      end if;
    end;
    I'm sure there is  better way to do it.  I just don't know it right off.
    Mk

  • Date picker default value

    No matter what I put in the default value for date picker none will show up.
    I used these:
    TO_DATE(CURRENT_TIMESTAMP,'DD-MON-YYYY HH:MIPM')
    TO_CHAR(CURRENT_TIMESTAMP,'DD-MON-YYYY HH:MIPM')
    CURRENT_TIMESTAMP
    :CURRENT_TIMESTAMP
    Any Help?
    Thanks,

    Hi,
    Have you specified what type of default value it is? Static Text, PL/SQL Expression or PL/SQL Function Body?
    I have that the best way to set a default value is by creating a computation, set to run Before Header and conditional on the item being NULL.
    Andy

Maybe you are looking for