Anomaly when CF takes the value 2 and & quot; 01/01/1900 & quot;

OK, that's an odd. In a piece of code, I have had an assessment like this
< cfif 2 IS "01/01/1900" > false < cfelse > True < / cfif >

And for some reason any "2 on 1 JANUARY 1900" "" the true resolution! Why is this? Anyone has any idea why?

Thank you
Marvin

If you try you will notice that it generates on 01/01/1900. When you tried to compare a date string, CF 01/01/1900 acknowledged a date and tried to force 2 at a date as well.

Im not sure what sense you are trying to go with this, but if you are trying to compare 2 at a time, you should probably use isDate() first... If the 01/01/1900 is supposed to be a date, then an invalid value is passed in.

I hope this helps...

Tags: ColdFusion

Similar Questions

  • Why my Illustrator images become thicker strokes when I take the bounding box and make it smaller?

    Why my Illustrator images become thicker strokes when I take the bounding box and make it smaller? It never happened to me. I'm not an expert in Illustrator, but I do know some basic principles.

    In the preferences, is the scale strokes and effects verified?

  • JavaScript input parameter should take the value of the element page Apex

    I have a JavaScript function which i dwonloaded ffrom net to generate bar codes

    DrawCode39Barcode(data,checkDigit).

    I call this function in the body of page attribute by using the following script

    < div id = "P5_X" > < / div >

    < script type = "text/javascript" >

    / * < ! [CDATA [* /]]

    function get_object (id) {}

    var object = null;

    If (document.layers) {}

    object = document.layers [id];

    } Else if (document.all) {}

    object = document.all [id];

    } else if (document.getElementById) {}

    object = document.getElementById (id);

    }

    Returns the object;

    }

    get_object('P5_X').innerHTML = DrawCode39Barcode('1-1-1111',0);

    < /script >

    When I run the page, the barcode for the value 1-1-1111' is generated. Please help so that when this page is running it will automatically take the value of the page item P5_X as parameter instead of hard coded value ' 1 - 1-1111'

    I think it would be simpler. You use the same id for the region and the order of the day, they must be different id

    JavaScript code can be in a dynamic action who sets fire to the loading of the page, or load Execute on the page of your page properties section.

    $('#barcode').html (DrawCode39Barcode ($v ('P5_X'), 0));

  • I activated the auto updates. When I take the update it says in the center of the page "the page failed to load".

    I activated the auto updates. When I take the update it says in the center of the page "the page failed to load".

    I tried to take different paths, as via the Control Panel, but it's the same thing.

    Operating system?

    Try the following: -.

    Open search Vista Start Menu Bar and type: RUN

    Click OK

    Type the following lines, and after each one, click OK: -.

    regsvr32 jscript

    regsvr32 vbscript

    regsvr32 /i mshtml

    No guarantee

    TaurArian [MVP] 2005-2010 - Update Services

  • When I open the Task Manager and select "Show processes from all users" there are 2 files virus csrss.exe?

    original title: virus csrss.exe?

    I use Vista Home Premium.  When I open the Task Manager and select "Show processes from all users" there are 2 files csrss.exe.  I learned that this indicates that I was infected by a virus.  Is this the case?

    Hi Julie,.

    Did you the latest changes on the system?

    Csrss.exe is Client/Server Runtime Subsystem.  All the Microsoft system has file csrss.exe running in the Task Manager, but it is likely to be infected by others. If it uses a lot of time processor and extremely abnormal in activities in the Task Manager, you can run a scan of the system security.

    You can read the following article to download the Microsoft Safety Scanner and perform a full scan on your computer.

    Microsoft safety scanner

    Note: When you perform the analysis, there are chances of losing the data that you can take a backup of important data before performing analysis.

    Hope this information is useful.

  • Redirect users to the page when you take the system into maintenance mode.

    I want to redirect users to the page when you take the system into maintenance mode. We are on 12.1.3 application. Please provide me with the document who have these details

    Please see old threads that deal with the same subject.

    http://forums.Oracle.com/forums/search.jspa?threadID=&q=redirect+and+maintenance&objid=C3&DateRange=all&userid=&NumResults=15&rankBy=10001
    http://forums.Oracle.com/forums/search.jspa?threadID=&q=maintenance+and+message&objid=C3&DateRange=all&userid=&NumResults=15&rankBy=10001
    http://forums.Oracle.com/forums/search.jspa?threadID=&q=outage+and+maintenance&objid=C3&DateRange=all&userid=&NumResults=15&rankBy=10001

    Do a search of the forum before posting similar questions.

    Thank you
    Hussein

  • receive an error message when one of the values in a formula is zero

    Hello

    I use a query to generate a PDF report... my query looks like this:

    Select
    CLIENT_NAME,
    (sum (MILEAGE) * MILEAGE_RATE) as TOTAL_INVOICE,
    Of
    T_TIME_REPORTING
    where
    CLIENT_NAME =: P22_CUST_NAME
    Group
    CLIENT_NAME

    It works fine when there is a valid value for the MILEAGE and MILEAGE_RATE, but gives an error message when anyone of them is null... Please advice how to fix this

    Thanks in advance

    PL don't post duplicate topics - get an error message when one of the values in a formula is zero

    Srini

  • My computer with two hard drives and 2 starting systems has the car crash in the solid state. When I got the new drive and tried to restore from time capsule, I lost some data. How can I see what backups are on the time capsule? My laptop is also backed u

    My computer with two hard drives and 2 starting systems has the car crash in the solid state. When I got the new drive and tried to restore from time capsule, I lost some data. How can I see what backups are on the time capsule? My laptop is also saved to the time capsule. Everything is in 'Data' when I look through the Airport utility. I think that the information that I've lost are still there since I was a Capsule 3 to.

    Time Machine backup to a sparsebundle.

    The sparsebundle will use the share name of computer. So, it should be obvious who is your Macbook and that is your Macpro.

    Open the sparsebundle in Finder and keep open the subfolders until you get to the backup of each separate hard drive...

    You has of course set the exclusion in Time Machine?

    By default, Time Machine will exclude your second drive unless you have included it. Did you?

    Once you get to this level during the backup, you can do a full restore manually whenever you want.

  • How to find the value max and min for each column in a table 2d?

    How to find the value max and min for each column in a table 2d?

    For example, in the table max/min for the first three columns would be 45/23, 14/10, 80/67.

    Thank you

    Chuck,

    With color on your bars, you should have enough experience to understand this.

    You're a loop in the table already.  Now you just need a function like table Max and min. loop.  And you may need to transpose the table 2D.

  • When I open the control panel and select system maintenance folder is empty. How to restore this file?

    Original title: maintenance missing system file

    When I open the control panel and select system maintenance folder is empty. How to restore this file? My support is also empty.

    Hello

    1. Were changes made to the software or hardware of the computer before the show?
    2. What backup you are referring to?

    Method 1:
    Visit the link below and run the Fixit.
    Difficulty of broken desktop shortcuts and common system maintenance tasks
     
    Method 2:
    Do a system restore and check. System restore allows you to use the computer from the date when it was working fine. Visit the link below.
    System Restore: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions
     
    Method 3:
    Run the System File Checker, visit the link below and follow the steps.
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
     
    After running the System File Checker visit the below mentioned link to analyze the logs.
    How to analyze the entries in the log file generating the program Checker (SFC.exe) resources of Microsoft Windows in Windows Vista

     
  • Windows 7 update everytime I open Chess Titans I have to turn the Board at my side. I'm black and it opens always white, take the 1st pass and remains there unless I smile it 180 degrees

    original title: Chess Titans little Caprice

    Windows 7 update everytime I open Chess Titans I have to turn the Board at my side. I'm black and it opens always white, take the 1st pass and remains there unless I smile it 180 degrees.

    Hi Woody15380,

    Chess Titans walk and check if that helps
    .
    Use this link to turn off the game and then turn on again.
     
    Also delete all the files in C:\Users\user name\AppData\Local\Microsoft Games\Chess Titans
     
    Aziz Nadeem - Microsoft Support
  • When I plan the registry defragmentation and compaction on my Asus computer, it starts and ignores all the hives

    When I plan the registry defragmentation and compaction on my Asus computer and restart it to all it will do is start the process as my computer starts and then it passes all of the hives. How can I fix it. I am using windows 7 Home premium 64-bit.

    Original title: compacting registry

    to activate the registry defragmentation and compaction: go to start then run, type msconfig and click on the Startup tab.

    Choose Safeboot (mininimal), and then restart the computer.

    The computer will restart in safe mode, just let it run through the process; If you have a regular dskchk, let this race as usual and let the computer restart, the reg defragmentation etc, should operate normally after that. Remember once the computer has restarted in safe mode and you're on the office just repeat the msconfig but uncheck the boot in the safe mode option, and then restart Windows normally.

  • I installed the download tool usb/dvd windows 7, but after you have selected the iso file when I insert the USB stick and refrecing, it does show that "no usb drive compatible' what is the problem with my USB

    I installed the download tool usb/dvd windows 7, but after you have selected the iso file when I insert the USB stick and refrecing, it does show that "no usb drive compatible' what is the problem with my USB

    I have sandisk cruzer blade USB key

    Hi Rohit,

    Thanks for posting your query in Microsoft Community Forum. I understand that your USB drive is having problems of compatibility with your computer, but I would like to learn more about the issue in order to provide you with better assistance.

    1. You did it any significant hardware or change software on the computer before this problem?
    2. When do you get exactly the error message?
    3. Have you tried to connect to any other computer on this flash drives?
    4. Your USB key works on other computers or have you tried to connect to different USB ports on this computer?
    5. Is the pen drive getting detected in the case or you are able to access the drive folder in the window of the computer ?

    The question may arise if the currently loaded USB driver has become unstable or damaged, or if your PC requires an update for problems that could conflict with a device USB and Windows. This can also occur if your USB controllers may have become unstable or corrupt. So, I would suggest trying the following steps and check if the problem persists.

    Method 1:

    Please try the fixit (s) provided below which will help you solve common problems associated with devices and USB ports.

    If method 1 does not work, try Method 2.

    Method 2:

    Remove and reinstall all USB controllers.

    1. Open Manager devices by clicking the Start button, click Control Panel, click system and security, and then, under System, clicking Device Manager. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    2. In the list of the categories of equipment, locate and expand Bus USB controllers.
    3. Right-click every device under the Bus USB controllers node and then click Uninstall to remove them one at a time.
    4. Restart the computer and let the USB controllers get reinstalled.

    Plug in the removable USB device and test to make sure that the problem is solved.

    If the problem persists, go to method 3.

    Method 3:

    This method will install the latest drivers from device to your USB device.

    1. Click the Start button, type Windows Update in the search box, and then click Windows Update in the results pane.
    2. Click find updates. When the scan finished, click optional review updates.
    3. Click the check box next to the update, and then click install updates.
    4. If you are prompted, read the license agreement, then click I agree.
    5. Follow the instructions on the screen to download and install updates.
    6. If you are prompted, restart your computer.

    More information: Update a hardware driver that is not working properly

    Hope this information is useful. If the problem still persists, please post back for further assistance, we will be happy to help you.

  • I bought lightroom in 2010 and have the serial number and a new computer. When I downloaded the latest version and typed in the serial number, it does not work. I bought at the origin of the creative suite. Any suggestions?

    I bought lightroom in 2010 and have the serial number and a new computer. When I downloaded the latest version and typed in the serial number, it does not work. I bought at the origin of the creative suite. Any suggestions?

    Your serial number works only with the EXACT product and the purchased version

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

    -you will need to enter your original serial number during the installation for non-Cloud programs

    - or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

    - and also read https://forums.adobe.com/thread/1146459

  • Hello!  I have created a fillable pdf file.  When I send the completed forms and try to open on my Iphone, I don't see the filled in information.  I don't see empty shaded areas.  I have Adobe Reader on my Iphone.

    Hello!  I have created a fillable pdf file.  When I send the completed forms and try to open on my Iphone, I don't see the filled in information.  I don't see empty shaded areas.  I have Adobe Reader on my Iphone.  Should I have a different program?  Am I missing a step of creation / fill in the form to fill out?  Thank you!

    Hi Carol,.

    Thanks for sharing your PDF form with us!

    I opened the attachment PDF in Apple Mail, used the iOS feature "open in" (or "copy in") to open it in Acrobat Reader for iOS and filled in one of the text fields. I found no problems with your PDF form.

    What is the version of Acrobat Reader for iOS that you have on your iPhone?

    Could you pass a glance "Open of Mail" section in the following FAQ document once again to make sure that you open a PDF document in Acrobat Reader for iOS (not in other Apple iOS applications)?

    How to open PDF documents in Adobe Acrobat DC for iOS (iPhone version)

    Please let us know what you find.

    Thank you.

Maybe you are looking for