TO_DATE - How do I pass the date and time to the function

Hi,
I am writing a PL/SQL code. The code has a simple cursor,
For the criteria, I am using a column called 'created' which is a date column, and the to_date function.
I would like to pass the date and time to the to_date fuction as a parameter, date_value, as shown below.
CURSOR opty is
select a.name, a.id
from s_opty a
where a.created > to_date(date_value, 'DD/MM/YYYY HH24:MI:SS');
I've tried declaring a bind variable,
date_value date := '&1'
but no joy.
Any ideas would be welcomed.
Thanks in antcipation
Mukesh

Can this help you?
SQL> create or replace procedure sample_proc
  2  as
  3  cursor c1(v_value varchar2) is
  4          select 'YES' from dual
  5            where trunc(sysdate) = trunc(to_date(v_value, 'DD/MM/YYYY HH24:MI:SS'));
  6  v_char varchar2(10);
  7  begin
  8     open c1('08/03/2006 11:35:20');
  9     fetch C1 into v_char;
10     dbms_output.put_line('Is it today''s date?> '||v_char);
11     close c1;
12  end;
13  /
Procedure created.
SQL> begin
  2    sample_proc;
  3  end;
  4  /
Is it today's date?> YES
PL/SQL procedure successfully completed.
SQL> If you are not very particular about the time, you can use TRUNC on both sides like :
where trunc(a.created) > trunc(to_date(date_value, 'DD/MM/YYYY HH24:MI:SS'));Cheers
Sarma.

Similar Messages

  • Aperture was not able to adjust the date and time of the master file "2008-06-22 at 14-41-14.jpg" because it has a format that does not permit date modification.

    I can't seem to find a way to update the date/time of a master file. There is a format issue but I can't seem to figure out how to correct it.
    Aperture was not able to adjust the date and time of the master file “2008-06-22 at 14-41-14.jpg” because it has a format that does not permit date modification.

    Can you post an ipconfig /all from the server and the DC?
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • HT5252 I tried to change my metadata date and got this   Aperture was not able to adjust the date and time of the original file "01769_p_h13ajyrm4bm0944.jpg" because it is locked or you do not have permission to modify it.

    I tried to change the metadata date.  It changed the date on my photo, but when I checked the box that said "also change my original file", it gave me this error message.
    Unable to change original file.  Aperture was not able to adjust the date and time of the original file “01769_p_h13ajyrm4bm0944.jpg” because it is locked or you do not have permission to modify it.
    Wassup?

    What is your Aperture version? The older versions of Aperture 3 had a problem to apply Metadata changes to the original file.
    If you are using the current version Aperture 3.4.5, try to repair the permissions on your Aperture library, if you have not already done so:
    Launch Aperture with the key combination ⌥⌘ held down and select "Repair Permissions" from the First Aid PAnel, that will appear.
    If that does not help, post back with more information on your original files - are the referenced or managed? Where is your Aperture library located? Since when do you have this problem? And what did you do directly before noticed the problem for the first time?
    Regards
    Léonie

  • How to capture file modification date and time over the web

    HI!
    I am creating a web based application and I am using webutil package for al lot of my work being that I ma working with renamin,deleting and uploading files for a users machine to the database. There is one functionality thing that I have to do in this application that webutil does not take care of and that is capturing the modification date and time from a file on the users machine. Please help me capture the date and time of a file on the users machine.
    Thanks!

    Since webutil allows you to write file on client PC directory, then you first create a directive file, then host that directive file. the directive file content is just the command lines when you manually do it on PC.
    Refer the ideas--just the ideas not the same built-ins in this URL:
    Hyperlink in forms

  • How can I show the date and time on the pictures in iMovie

    I am trying to make a slide show.  The date and time the pictures were taken are the important information that I would like to show in the slide show.  However, I cannot find the way to do that in iMovie. 

    I am trying to make a slide show.  The date and time the pictures were taken are the important information that I would like to show in the slide show.  However, I cannot find the way to do that in iMovie. 

  • Where i will give the date and time of the session background process

    Hi.
    I created a program on XD01 by using Session Method.
    It is executed properly and process in forground also fine.
    What my problem is i want execute process of session in Back ground on that time i want give the Date and Time. I do not know where i will provide date and Time.
    I want Process the BDC Session after 2 days. How it is possbile. Where i will give the date and Time?
    With in these 2 days i want know the status of the Session Process. How i will check the status?
    Any body will explain these things with full flow of sequence.
    I do not want use the BDC Session by using RSBDCSUB. In that program there is no options for giving the Date and Time.
    Thank You.
    B. Krishna.

    Hi,
    While creating session through BDC_OPEN_GROUP function, populate HOLDDATE field to set lock on the created session till that date, say 31.12.2008 and you would like to execute your session on 1.1.2009 at 2:00 AM.
    Once session is created, create a batch job for program RSBDCSUB and schedule it on 1.1.2009 at 2:00 AM (server time).
    I am confident that it solves your problem.
    Regards,
    Prasanth

  • Resetting the date and time after the phone has be...

    Hi,
    I keep having to reset the date and time very time I turn my phone off. I was thinking it was to do with the battery so I fully charged it, turned it off then turned it on again and it asks me for the date and time.
    I only noticed this because I've had exams and I have to turn my phone off for them.
    Could it be a dying internal battery?
    I know with computers there's a BIOS battery that controls date and time. When they start to die the date and time are inaccurate.
    I'll have to find time to take it to the 3-Mobile shop either on Sunday or sometime next week if it is an internal battery problem.
    Thanks,
    Omar
    "A Jade stone is useless before it is processed; a man is good-for-nothing until he is educated."

    Hi omar3256
    I believe that there is a very small component on the motherboard which serves this purpose, although whether battery or sort of capacitor I am not certain. The N80 especially seemed to be prone to this failure.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • How can I display the date and time from the playhead info as a subtitle ?

    Is there any way it is possible to display the video capture data and time during playback. I have seen some discussion on creating subtitles to do this, it would be nice if one could simply add a Title template with display fields for playhead information so that it automatically gets created during rendering.
    In case you are wondering why on earth anyone would want this, I would like to use this for display on multisport racing videos.
    Thanks

    There is a Date/Time title in the titles browser, does just what it says...

  • How to get the date and time of the last KM scheduled run

    Hi Experts,
    I had a scenario where i need to send the last date and last time when the KM schduler runned.?
    Issue:
    I have created a Km sheduler, in that i have written the jave code to retrieve the details from a function module and getting the output from Func module and sending an email  to one administrator.It worked fine for me.this scheduler will run for every 20 mins.
    But now Abapers have included two import parameters in their Function module " Last date and last run".So i need to populate this iimport parameters dynamically.
    How can i acheive this?
    Please assist.Thanks in Advance.
    Thanks
    Sony.

    java.util.Date date = java.util.Calendar.getInstance().getTime(); //retrieve a date object
    java.text.SimpleDateFormat df = new java.text.SimpleDateFormat(dd-MMM-yyyy);
    String s = df.format(date); //10-Aug-2001
    String t = "15042001";
    df.applyPattern("ddMMyyyy");
    d = df.parse(t);
    df.applyPattern("dd-MMM-yyyy");
    t = df.format(d); //15-Apr-2001Hey it's Friday, I'm bored

  • How to pass system date and time with tabular from in Update only Mode.

    Dear Friends,
    i have created tabular form with UPDATE Only .here i am assigning work to another multiple users.i want to insert system date and time when i assign work to multiple users.
    How can i insert system date and time into table using tabular form in Update Only Mode.
    beacuse i have pass in default system date it's working only with add row button.
    How can i pass system date and time in update mode in tabular form.
    Thanks

    Hi,
    You just create a trigger on the table on which you build your tabular form:
    e.g:
    CREATE OR REPLACE TRIGGER  "AUDITING"
    before insert or update on "MYTABLE"
    for each row
    begin
        if inserting then
            :new.created_on := localtimestamp;
            :new.created_by := nvl(v('APP_USER'),user);
        elsif updating then
            :new.updated_on := localtimestamp;
            :new.updated_by := nvl(v('APP_USER'),user);
        end if;
    end;Regards,
    Fateh

  • How to get Date and time of the server?

    Hi, How can we get the date and time of the server while submitting a form using JSP? i.e I need the date and time , when the user is submittig a registration.
    Uma

    Upon receiving your data in your servlet, you can do the following to get the date,
    Calendar calendar = Calendar.getInstance();
    int dd = calendar.get(Calendar.DAY_OF_MONTH);
    int mm = calendar.get(Calendar.MONTH) + 1;
    int yyyy = calendar.get(Calendar.YEAR);
    String dd_mm_yyyy = dd + "/" + mm + "/" + yyyy;
    To get the time, simply take a look at the Calendar API to get the corresponding field.

  • How can I copy the date and time of a received email in Mountain Lion?

    I recently installed the new Mountain Lion, however I am having a serious issue with the mail application. I use the mail application to download all of my emails and then I copy each one in to a Filemaker Database. I used to be able to copy the headers (from, to, subject, date, time) but now with the new mail in Mountain Lion it will not let me copy the date and time of the email. This is the most important part for me as I need to be able to track when the email was received once I have pasted it in to the Filemaker program. Anyone know if there us an option so that the date and time can be copied from the email?

    I suppose you could copy it from the Raw Source. View>Message>Raw Source

  • How can i have the date and time show up on my canon vixia hf m50

    Cannot get the date and time to show up onscreen in ANY videos on my new vixia HF M50. Can somebody help me on this?

    Hello Jerrysulew, 
    You can show the date and time using the Captions option.  The process is described below.
    Add a new level of enjoyment to your scenes by decorating them. You can add animated graphics, stamps and even your own freehand drawings. The supplied stylus pen will be especially useful for decorating scenes.
    You can decorate scenes as they are being recorded.
    IMPORTANT
    The screens and settings that appear may differ depending on the model you are using.
    NOTE
    You can open the decoration screen when the LCD panel is stowed with the LCD screen facing away from the camcorder. In such case, make sure [Autostart Decoration] is set to [On].
    Decorating Scenes while Recording
    1. Touch [ 
    2. Touch [Decoration].
    3. The decoration mode screen appears.
    On the decoration screen, there is a canvas where you can draw freely, and a toolbar with tools lined up for creating your drawings.
    Select the tool you want to use from the toolbar, and make drawings on the canvas.
    Icon
    Tool name
    Function
    Pens and Stamps
    Select the type of pen or stamp and its color. You can also save a canvas or load a previously saved canvas.
    Animated Stamps
    Select animated stamps to add to your decoration.
    Captions
    Add the date, date and time, story title* or story theme* as a caption that will be included in the recording.
    Image Mix**
    Choose one of 27 different frames to add onto the canvas. Image mix can be used in combination with the pens, stamps and animated stamps.
    Freeze screen**
    In recording mode: pause the live video. Touch [ 
     again to restore the live video. You can add decorations to and record the frozen image.
    In playback mode: pause the playback. Touch [ 
     ] to resume playing back the scene.
    Minimize toolbar
    Minimize the toolbar to the top of the screen to view almost all of the canvas. Touch [ 
     ] to restore the toolbar.
    * Not available in 
     mode.
    **Not available in 
     mode and for MP4 movies.
    4. Use a tool from the toolbar as explained in the following procedures.
    5. PressYou can add decorations even while recording a scene.
    6. Touch [ 
     ] to exit the decoration screen.
    NOTE
    For AVCHD movies, decorations will appear in the thumbnails of scenes in the [ AVCHD Movies] index screen and gallery. For MP4 movies, decorations will not appear in thumbnails.
    To use [Pens and Stamps]
    1. Touch [ 
    The [Pens and Stamps] screen will appear.
    2. Select the desired pen or stamp from [Tools].
    Select Colors.
    Touch [ 
    Select white or black from [Colors].
    Alternatively, you can touch [ 
     ] and select a color from the displayed colors.
    3. Draw freely on the canvas.
    Touch [ 
     ] > [Clear] > [Yes] to clear the canvas and start again.
    NOTE
    The canvas with decorations can be deleted, saved, and loaded.
    You can save the decorated canvas right after a decorating action.
    If the memory that contains the canvas is initialized, the canvas will be deleted.
    To use [Animated Stamps]
    1. Touch [ 
    2. Touch one of the control buttons.
    3. Touch anywhere on the canvas to place the selected animated stamp. You can also drag some animated stamps to a different location.
    NOTE
    When the [Animated Stamps] tool is used, the date/time will not be displayed or recorded.
    To use [Captions]
    1. Touch [ 
    2. Touch [Date] or [Time].
    When recording a scene using Story Creator, you can also select [Title]
    (the story&&&&&&&&&s title) or [Story Scene] (the story scene category).
    3. Select the desired text settings and touch [ 
    Touch [ 
     ] (white text on dark background), [ 
     ] (white text) or [ 
     ] (black text).
    Touch the caption and drag it to the desired location.
    To use image mix
    1. Touch [ 
     ] to open the [Select Image] screen.
    2. Touch [ON].
    3. Touch [+] or [-] to select a different image mix frame.
    You can touch one of the memory icons at the bottom of the screen to read image mix frames saved on a different memory (When recording on or playing back scenes from a memory card).
    Touch [ 
     ] to mix the selected frame with the live video.
    NOTE
    When [Rec Media for Movies] is set to [ 
     ] (the built-in memory), you will not be able to select image mix frames saved on a memory card (For camcorders that have internal memory only).
    For AVCHD movies, image mix cannot be selected during playback or while converting a scene to standard definition (For camcorders that have internal memory only). Select the image mix during playback pause or before starting the conversion.
    To use freeze screen
    1. Touch [ 
    The control button will change to [ 
     ] and the picture will be frozen.
    Decorate the screen using the other tools in the palette.
    2. Press the
    The decorations created will be recorded with recording scenes that are on pause.
    Press the
    Touch [ 
     ]. The screen will return to normal.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to have the Date and Time appear on printouts

    The Date and Time used to appear (at the bottom right) on things printed from websites. For example, receipts from an online purchase, an article on the web etc.
    I am able to see the setting to appear at bottom right (in the "File" dropdown).
    Following a Firefox update, I no longer get that very useful "Time & Date Stamp".
    This is very frustrating. Can anyone help?
    Thanks,

    Are you saying you can see the date and time in the "Print Preview" or in the "Page Setup" dialog under the "Margins & Header/Footer" tab. The date and time won't display if it is not set correctly in the "Page Setup" dialog. Also, is this on one specific printer or many different ones? If this is only happening on one printer there may be a problem with the print driver, even though there would be probably more serious things going on than a missing footer. You could also experiment and create a pdf using "PDF Creator" at http://www.pdfforge.org/pdfcreator and see if it comes up on the created document.
    Hope this gives you some headway.

  • HOW DO I SET THE DATE AND TIME ON MY HP OFFICEJET 8600

    just bought the HP officejet 8600 all in one printer, and I cant seem to set the date and time for the fax portion of the printer, please help.

    Set the date and timeOn the control panel, touch the Right Arrow ( ), and then touch Setup ( ).Touch the Down Arrow ( ), and then touch Preferences .Touch Date and Time: , and then touch the Up and Down Arrows ( ) to set the month, day, and year.Touch Done , and then touch the Return Arrow ( ) to return to the Preferences menu.Set the language and country/regionIn the Preferences menu, touch Language .Touch your preferred language, and then touch Yes to confirm your choice. The product returns to the Preferences menu.On the Preferences menu, touch Country/Region , and then touch your specific country/region.Touch Yes to confirm your choice, and then touch the Home icon ( ) to return to the main menu.

Maybe you are looking for

  • IPod 5th generation and Windows Media Player

    I just got an iPod 5th gen. for my b-day and have a ton of music on Windows Media Player that I want to put on the iPod. When I try to sync, Windows Media Player says to "connect device". I plug in the Ipod but it still says to connect the device. Is

  • Can't download drivers for Vista

    I've tried downloading the drivers for my HP2610 all in one printer to my laptop which is still running Vista. Every time I get an error that the file was deleted because it contains a virus. The error comes from Windows, but I can't determine what p

  • Step by step message mapping/testing  examples

    Hi! I have read many blogs and SAP literature about message mapping. However, none of them gives step by step details. Can anybody give any very detailed mapping procedures? Thanks a lot!

  • Itunes songs skipping

    Why do certain songs that are purchased from the Itunes store skip on the Ipod classic? About 1/3 of all my songs that I have purchased through Itunes skip at some point during the song. Some at 5 seconds, some at 40 seconds, etc... I Can not convert

  • I just bought Photoshop Elements 13 and cannot find the Magic Extractor.  Where is it?

    I watched a video online and thought this would be a really cool tool to have since I'm preparing images for Amazon and they require a white background on the main product photo.  I thought buying Version 13 would be smarter than 12 or less as it wou