How to check time is entered

Dear sir
I have column sales_date with forms data type - datetime and
I set format mask -dd-mon-yyyy hh24:mi
How to validate whether user entered both date and time. How to check this in
oracle forms
Rgds
Dev

Hey User504310 ,
U can keep ur format mask and split the date and time like that..for example:
SELECT MAX(to_char(ATT_DATE,'MM/DD/YYYY HH12:MI')),MAX(to_char(ATT_time,'MM/DD/YYYY HH12:MI AM'))
INTO V_DATE,V_TIME
FROM ATTENDANCE
WHERE ATT_EMP_NO = V_ATT_EMP_NO;
-- MESSAGE(V_DATE);
-- MESSAGE(V_TIME);
V_MAX_DATE := substr(V_DATE,1,10);
--MESSAGE(V_MAX_DATE);
V_MAX_TIME := substr(V_TIME,12,2);
-- MESSAGE(V_MAX_TIME);
ELSIF( (V_MAX_DATE = TO_CHAR(V_ATT_DATE,'MM/DD/YYYY'))      AND (V_MAX_TIME > TO_CHAR (V_ATT_TIME,'HH12:MI'))) THEN
          MESSAGE(' Not a Valid Time');
Regards,
Abdetu.

Similar Messages

  • How to check the value entered in one co from anethor CO

    Dear All,
    I have a Debrief screen in which one main region is attached to CO1 and a tab region is attached to CO2, the tab region  is an independent region in the main rdebrief main RN,
    Here i have a requirement if one of the field of the tab region is entered , that has to be captured in the Debrief main Region CO.
    could you help in assisting this.
    Regards
    AK

    AK,
    You can get handle of any item in the page from the mainCO by getting handle of the bean. You will have to get the handle of the tabbed region and get the handle of the corresponding field.
    Alternatively, you can get the value from the VO Attribute, if the field is mapped to a VO attribute.
    Cheers
    AJ

  • How come every time i'm on the phone and another call enters I answer it but it doesnt tell me anywhere who is who on each line so i can go back and forth?? it only says multiple calls and i cant hang up the other line

    how come every time i'm on the phone and another call enters I answer it but it doesnt tell me anywhere who is who on each line so i can go back and forth?? it only says multiple calls and i cant hang up the other line.

    My carrier is Sprint. But I actually have checked with others and theirs work fine.

  • Hi  I'm try to set up a new Epson printer SX 445 to my router/network but each time I run the set up wizard it fails to complete saying Security Key/Password Check fail.  *entered security key/password does not match the one set for for router.  I know th

    Hi
    On my macbook pro
    I'm try to set up a new Epson printer SX 445 to my router/network but each time I run the set up wizard it fails to complete saying Security Key/Password Check fail.
    *entered security key/password does not match the one set for for router.
    I know that the password is correct and have rechecked this by changing it a few times
    and I still get the same result.
    My network internet service provider is not interested and says to call Epson.
    Anybody have any clues how I can resolve this?
    Regards

    I personally suggest the new Drobo FS. Since it has an iTunes server built in and you can use any size sata hard drive in it it is better and a NAS that has to use the same size drives.

  • How do I edit or enter values on multiple sheets at the same time in Numbers?  I can do this Excel but don't know procedure in Numbers.  Thanks.

    How do I edit or enter values on multiple sheets at the same time in Numbers?  I can do it in Excel but I don't the procedure in Numbers.  Thank you!

    The only I way I can think of to modify a single value and have that value change in multipl locations is to have all "the other places" reference a single cell.  There is not way without a referene to modify a set of cells simulateously.
    This may be something like what you want:
    Enter a value in the table "Original Data" cell A1 and the A1 cells of tables Ref1, Ref2 and Ref2-1 will change

  • How to check 6 digital signals change value at the same time with PCI-6229??

    I am using DAQ card PCI-6229.
    Channel 1 generate a digital signal.
    Channel 2,3,4,5,6,7 acquire digital signals.
    I want to check:
    1. Whether the rising edge of Channel 2,3,4,5,6,7 occures at the same time;
    2. The time delay from the rising edge of Channel 1 to the rising edge of Channel 2,3,4,5,6,7 is within a certain range.
    I know I can use counter to get the two edge seperation time delay. But I only have two counter, it is two time-consuming if I check one by one.
    I don't know how to check the rising edge of 6 different channels occure at the same time.
    Does anyone has any suggestions?
    Thanks

    Hello,
    You can use the DAQ card's digital input change detection circuitry to detect changes in the input, you can then use a counter to measure the relative time between samples. Please read Page 6-9 DI Change Detection Applications for more information. Let me know if this helps
    Christian A
    National Instruments
    Applications Engineer

  • How to Check System Preference Settings with Time Machine

    I just found and fixed a problem caused by a bad System Preference/Universal Access
    setting and would like to go back in my Time Machine backup to see where the
    error was made. I may have been too quick to blame the 10.5.3 update on the
    problem so wanted to look back in time.
    The problem is i don't know how to check System Preferences using the Time Machine.
    Any suggestion?

    If you're looking for specific settings, the short answer is you cannot. You can open the .plist files and try to find the specific option you're looking for, though it might not be too easy to decipher some of the contents of the .plist file. For the most part they're just lists of attributes and settings. For instance, here's a very small chunk of my Finder .plist file:
    <key>All Images.cannedSearch</key>
    <dict>
         <key>SidebarWidth</key>
         <integer>162</integer>
         <key>ToolbarVisible</key>
         <true/>
         <key>ViewHeight</key>
         <integer>1116</integer>
         <key>ViewStyle</key>
         <string>icnv</string>
         <key>WindowBounds</key>
         <dict>
              <key>bottom</key>
              <integer>1200</integer>
              <key>left</key>
              <integer>56</integer>
              <key>right</key>
              <integer>1920</integer>
              <key>top</key>
              <integer>84</integer>
         </dict>
    </dict>
    <key>AnimateInfoPanes</key>
    <true/>
    <key>AnimateSnapToGrid</key>
    <string>true</string>
    <key>AnimateWindowZoom</key>
    <true/>
    Each "key" is followed by an attribute, so for instance the "SideBar Width" key is given the "Width" integer attribute of 162. However, some keys have multiple entries, such as the "WindowBounds" key having sub-keys of "bottom", "left", "right", and "top".
    These values are finder preferences, though are not accessible via the finder's preference settings. However, buried deep in the Finder's .plist file are some of the user-editable settings:
    <key>ShowHardDrivesOnDesktop</key>
    <true/>
    <key>ShowMountedServersOnDesktop</key>
    <true/>
    <key>SidebarSearchesSectionDisclosedState</key>
    <false/>
    If you can find the attribute you're looking for, then that may help you narrow down which version of a .plist file to restore, though not all of them are straightforward legible text. Some have bizarre strings of seemingly random characters that only the application can interpret.
    Message was edited by: Topher Kessler

  • How to check whether current time satisfies the schedule?

    I am working on a task, which is opposite of cron tab. My application is in groovy but can call all Java api. Can you please provide some pointers?
    User is allowed to schedule a rule to be executed the way crontab gives the options. For example he wants the rule to be executed from Monday to Friday from 8 am to 5 pm.
    I can’s schedule in crontabe or Quartz. At run time I have to match, whether the current time satisfy the time condition entered by user.
    I may have to store this information in the database the way we put in the cron. Eg. my tables will have following
    Id|| Policy Id|| seconds|| minutes|| hours|| Day|| Date|| month|| year
    1 || 5 || 1     || 1 || 8-17 || M-F||? || * ||*
    Now while my code is getting executing, how can I match whether the current time matches the condition mentioned above.
    Thanks in advance.

    [Using Span|http://tus.svn.sourceforge.net/viewvc/tus/tjacobs/util/] would make this easy

  • How to health check time capsule disk

    how to health check time capsule disk?
    when doing time machine backuping and copying files into time capsule, it would take ages and very long time.. is the disk going to die soon?
    is there anyway i can check the disk?
    my time capsule is 2TB current model.
    please help.
    thank you.

    Time Machine automatically checks the backups on the disk.  It does a quick check (a few seconds) before every backup, and periodically (every month, I think) does a much more thorough check.
    You can do that yourself, by holding the Alt/Option key while selecting the TM icon in your menubar, and selecting Verify Backups.  That may take quite a while, if you have a lot of data.  I'd recommend connecting via Ethernet, as it will still be slow, but 2-3 times faster than WIFI.

  • How to check the last time a package has been compiled?

    How to check the last time a package has been compiled from sqlplus?

    LAST_DDL_TIME column in DBA_OBJECTS.

  • How to check CRL validity time from client?

    Hello,
    I have one Windows Server 2003 R2 working as Standalone CA. It provides certificate for one of our internal IIS website.
    I have decreased CRL publish interval from 1 week -> 1 day and Published new CRL.
    However, our webserver is propably not aware of new CRL publishing interval changed on CA, because I suppose webserver has cached CRL locally.
    My question is, how to check cached CRL validity time from our webserver? Its running Windows Server 2003 R2.
    I attempted to run following command on webserver with 0 results: certutil -urlcache crl

    You basically have to wait it out when you are running an 11 year old operating system
    The certutil -urlcache CRL command was introduced in Windows Server 2008/Vista.
    The deletion/inspection of cached CRL data was not really an option in Server 2003
    Brian

  • How to check the compilation time of C++ code on Xcode 6

    how to check the compilation time of C++ code on Xcode 6

    import java.util.Calendar;
    Calendar rightNow = Calendar.getInstance();  // gets the current date and time to millisec
    Calendar earlyTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 6).set(Calendar.MINUTE, 30);
    Calendar lateTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 8).set(Calendar.MINUTE, 0);
    if (rightNow.compareTo(earlyTime)> 0 && rightNow.compareTo(lateTime) < 0){
    // do something
    }Try this.

  • My blackberry does not recognize my icloud email password. "Invalid" no matter how many times I enter it correctly. What's up with this??

    Blackberry does not recognize my icloud email password. "Invalid" no matter how many times I enter it correctly. What's up with this??

    Make sure you have the correct server settings as detailed here:
    http://support.apple.com/kb/HT4864
    Note the requirement for SSL.

  • HT1723 Recently I bought a MacBook Pro, the first time I entered a disc into the disc dive it wouldn't load up in Itunes - just kept freezing; and the disc drive made a lot of noise, how can I fix this?

    Recently I bought a MacBook Pro, the first time I entered a disc into the disc dive it wouldn't load up in Itunes - just kept freezing; and the disc drive made a lot of noise, how can I fix this?
    I've had my mac for less than a month and for the first time I put in a disc. I can hear a laser sort of noise as well as the disc flapping about or a motor sort of sound? Sounds really bad to me :/
    Someone please help!

    Sounds like a hardware issue.
    Did you buy the system from Apple? If so how recent is recent?  If it is new you have 14 days to return it, not sure what the situation is with refurb systems. If it is over 14 days you should still have warranty support make an appointment at an Apple Store or contact Apple support.
    If you bought it from someone other then Apple you will need to contact them.
    good luck
    regards

  • Help--how to check the exact time?

    Pls help me:
    How to check the accurate down-time when the Sun machine (with solaris 8 sparc) abnomally shutdown (eg. power failure)?
    or
    Is there any way to detect the exact time when I shutdown the Sun machine ?
    thanks.

    check /var/adm/messages ; uptime ; last ..
    there are quite a few method u can use

Maybe you are looking for

  • Develop Settings - Process Version

    The process version in the develop settings is sometimes nil, sometimes '5.0'(2003), and sometimes '5.7'(2010). - Begging the questions: (I haven't checked every one but so far if its read as nil by plugin, they're shown as 2003 in Lightroom UI) 1. W

  • Conditions vs .rtf filter

    Working with FM 9.2p250 and a silly request - 1. I open a document where I've been tracking changes with conditions since 2002. Only the last release's changes are visible, 'cause that's what I've specified with Show/Hide Conditional Text. 2. I selec

  • I earased my idisk icon in my finder window

    I accidentally erased my idisk icon from my finder window. I have searched for it in every place possible so that I could drag it back to the sidebar but I have yet to find the icon again. I was wondering if there was anyway I could get it back. Mess

  • Location Service Being Used by a CLOSED App

    I noticed my location services arrow was sticking around for more than a few seconds. This never happens. I wanted to find out what it was so I closed one app at a time and then checked if it went away... I ended up closing ALL apps, yet the location

  • Receiving CRW32.exe error when starting Business Objects XI

    I have a user receiving a CRW32.exe error every time she try's to start Business Objects XI and she cannot even run the application. I have already tried uninstalling / re-installing the product and removing all related registry keys with no success.