Can you frce a date range

I am trying to force a user to only enter a date between the
range of 01/01/2009 to 12/31/2010. Is there a way to do this in a
standard <cfinput>? I attempted to use the range attribute,
but it does not like the format.

I tried doing this as well.
In the end I created two drop down boxes - one for day of
month and one for month/year (I also had the problem of using
european dates so drop down boxes avoided some possible errors)
(Apologies for the lack of correct CF below but I should
really be busy!)
<select><option
value="01">1st</option>...</select>
<cfset curMonth = createDate(2009-01-01)>
<cfselect><cfloop from 0 to 23 index i>
<option value eq "#dateFormat(curMonth, yyyy-mm-)#">
<dateAdd(m, #i#, curMonth)>
</cfloop></cfselect>
date = #monthField##dateField# e.g. "2009-01-""03"

Similar Messages

  • Can you filter a date range in Numbers 3.1?

    It seems crazy... but I can't figure out how to filter a date range in the new Numbers (3.1).  In other words, I have a column with individual dates e.g. 31-Dec-2012, 29-Feb-2013, 19-April-2004, etc.
    I want to filter it so that ONLY the dates from 2012 show up.
    The thing is that the new filters ONLY seem to let you filter from today's date e.g. between 494 and 692 days from today.  Obviously, that isn't what I want, and it seems very wierd that something so basic would be left out.
    What am I missing?

    In the example below Column A has date values and Column B has a simple filter that displays dates if in year 2012.  Pretty simple, likely too simple.  Not sure what/how you want to display but thought I'd get something started.  The formula in Column B is: IF(YEAR(A2)=2012,A2,"").  You can hide column A if desired.

  • Can you remove a date and time stamp off a photo that has already been taken?

    Can you remove a date and time stamp off a photo that has already been taken?

    only with Photoshop or similar software that offer some clone/heal feature.
    Weekend Travelers Blog | Eastern Sierra Fall Color Guide

  • Can you export the date and user to Excel that appears into a Comments field in a tracking list?

    Hi everyone,
    Can you export the date and user to Excel that appears into a Comments field in a tracking list?
    When i export a tracking list with a Comment field in the Content type, the screen where you enter the data for an item, the Comments field just export the text of the comment into the Excel file.
    In the Comments field appears also, besides the comment text,  the user and date from who and when the comment is added.
    Is there a way to export also the user and the date?
    Thanks
    Wim

    create another comment field that doesn't use 'appending', and through SP Designer change workflow keep
    updating that field with the new comments  (prepend the field with date/username/new comment). Hide the field on all forms, but put it in the view you need to export to Excel.
    Please refer few more links: Hope they will help
    http://www.nothingbutsharepoint.com/2009/04/16/versioning-append-changes-to-existing-text-view-entries-aspx/
    http://sympmarc.com/2011/02/07/showing-all-versions-of-append-changes-to-existing-text-in-a-data-view-web-part-dvwp/comment-page-3/
    https://mossipqueen.wordpress.com/2013/03/06/display-all-appending-field-entries-in-a-single-list-view/
    http://community.office365.com/en-us/f/154/t/278560.aspx
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • I was wondering, once the 1gb free data is applied to the account, can you downgrade your plan?  If so, how low can you drop the data before the promo is affected?

    I was wondering, once the 1gb free data is applied to the account, can you downgrade your plan?  If so, how low can you drop the data before the promo is affected?

    I beleive you have to keep your PAID data of at least 1gb

  • Can you manually add data to Nike + or do you need to use the Nano?

    Can you manually add data to Nike + or do you need to use the Nano?
    What if you are on a trip and forgot your Ipod. It would be great to be able to add lost data. or even edit the Ipod data on the Nike + website

    Hi Hrbrmstr,
    That will be very cool if you can create an xml file
    that will allow us to add runs and edit runs on the
    Nike+ site! The trick may be getting past the server
    dragon which sends out a warning saying, "Your
    workout data could not be sent to nikeplus.com
    because the data could not be accepted by the server"
    when it does not like the data it is sent.
    For example, my runs that did not post had something
    in common: when I read these xml files with TextEdit,
    both have a line that says,
    "<stepCounts><walkBegin>0</walkBegin>". There's also
    a line that tracks steps run. It also said zero. Of
    course, these lines should NOT read zero, because I
    was not starting at zero steps! My guess is that this
    anomaly makes the Nike+ server either reject or
    delete these runs because the step count does not fit
    my other runs.
    Well, I'll leave this stuff to someone who knows more
    than I. Glad you're here.
    For jackt123, the longer is answer to your question
    is that certain things that are not doable now may be
    doable in the future. Stay tuned.
    I just got the dragon today. "Your workout data could not be sent to Nikeplus because iTunes received an unexpected response from the server. Please try again later." Did you ever find out why this happened to you? I went on nikeplus and it did in fact upload my latest run. Now my goals are blank on nikeplus.

  • Can you check the date of a iphone photo

    can you check the date of an iphone photo

    Snow? what is that...
    You definitely want to check out these apps:
    wine
    https://itunes.apple.com/au/app/the-wine-regions-of-victoria/id407627657?mt=8
    nature
    https://itunes.apple.com/au/app/field-guide-to-victorian-fauna/id423945031?mt=8
    Events
    https://itunes.apple.com/au/app/vicevents/id468981322?mt=8

  • Can you add the date of the reviews in appstore?

    Hi there :-)
    Can you add the date with the reviews in the appstore?
    It will make it a lot easier to make choises when we like to try an app or even buy it.
    It's very common on fora on the www.
    Kind regards.

    Apple is not here. Apple ddoes not answer questions here. This is a user to user forum.
    http://www.apple.com/feedback/

  • How would you send a date-range parameter to a SQL sproc?

    Team,
    MY ENVIRONMENT
    SQL 2005, Crystal Reports for Visual Studio 2005
    MY PROBLEM
    I am authoring both a sproc and a report, so I have full control over the design. I am a SQL expert and also a Crystal 8.5 expert.
    I have done the Sproc-Report connection dozens of times.
    Please consider along with me the sequence of creating a report based on a parameterized stored procedure.
    My sproc header is shown here:
    CREATE Procedure dbo.usp_DocumentActivityReport(
         @Department NVARCHAR(50)      
       , @DateRange  NVARCHAR(50)
    ) AS
    SELECT Col1, Col2, Col3 FROM #TEMP
    MY THOUGHT PROCESS
    @DEPARTMENT is a string. That's easy.
    @DATERANGE is a DATE RANGE and I don't know how to get Crystal Reports to prompt for a date range, so I used a String parameter knowing I can parse a specially formatted string, and knowing that I can use a formula to compute the string.
    Step 1. Create the blank report, the {?Department} parameter, the {?CreationDateRange} report parameter, and the {@DateRangeText} conversion formula that converts {?CreationDateRange} to the specially formatted string.
    Step 2. Test the stored procedure.
    Tests pass; It returns data when I run it with values, with zero-length string values, and with NULL values.
    Step 3. Tie the report to the stored procedure.
    Adding the sproc directly creates two hard-wired, undeletable parameters, and returns data columns. That's no good because the user must supply the specially formatted string for the date range. So, I try using Add Command instead, with this syntax:
    {call "EXP_TEST"."dbo"."usp_CorroDocumentActivityReport" (N'{?Department}', N'{@DateRangeText}')}
    This code is accepted, but Add Command did not create any undeletable parameters at all. I guess that's OK.
    But the worst part is that it does not show any output columns with data either! AAARGH!
    Please assist with showing me the proper order to do these steps.
    BTW, here's the VB Syntax formula for {@DateRangeText}:
    Dim min As String
    dim max as String
    if HasLowerBound ({?CreationDateRange}) then
      min = ToText(Minimum({?CreationDateRange}),"MM/dd/yyyy")
    else
      max = ""
    end if
    if HasUpperBound ({?CreationDateRange}) then
      max = ToText(Maximum({?CreationDateRange}),"MM/dd/yyyy")
    else
      max = ""
    end if
    if IncludesLowerBound ({?CreationDateRange}) then
      min = "[" & min
    else
       if HasLowerBound ({?CreationDateRange}) then min = "(" & min
    end if
    if IncludesUpperBound ({?CreationDateRange}) then
        max = max & "]"
    else
       if HasUpperBound ({?CreationDateRange}) then max = max & ")"
    end if
    'formula = min & "..." & max
    formula = "(1/1/2009...3/1/2009)"
    sorry ... cross-posted per Amit

    Ludek,
    It sounds like you and The specified item was not found. think along the same lines! I have cross-posted for both of you now!
    Please see Simple Sproc Parameters question
    ~ Shaun

  • How can I set a date range for a Date/Time Field in LiveCycle ES2?

    I need to set a specific date range for a form set up in LiveCycle ES2. Cannot see where i allows me to do that without a code entered.

    Hi,
    You can't set a start and end date for the date/time field, the best you can do is validate the range after the user has selected it.
    An alternate is to make your own date / time field, like this sample http://adobelivecycledesignercookbookbybr001.blogspot.com.au/2013/05/an-alternative-date-p icker-for.html
    Regards
    Bruce

  • How can we restrict the date range in the date picker

    While selecting any date a pop up date picker appears. In this date picker the users can select any future dates which can be 30-40 yrs ahead. How can customize this date picker so that the users are not allowed to slected date beyond certain range. ...??

    Hi user570596,
    I think there is no method to actually restrict the date picker popup, but you can use the ApexLib Framework (http://apexlib.sourceforge.net/) to define a min/max value for your date field. This will prevent the user from submitting the page when the date value is outside the defined range.
    See http://inside-apex.blogspot.com/2007/03/min-max-value-validation-in-browser.html
    for details.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • Can you check for data in one table or another but not both in one query?

    I have a situation where I need to link two tables together but the data may be in another (archive) table or different records are in both but I want the latest record from either table:
    ACCOUNT
    AccountID     Name   
    123               John Doe
    124               Jane Donaldson           
    125               Harold Douglas    
    MARKETER_ACCOUNT
    Key     AccountID     Marketer    StartDate     EndDate
    1001     123               10526          8/3/2008     9/27/2009
    1017     123               10987          9/28/2009     12/31/4712    (high date ~ which means currently with this marketer)
    1023     124               10541          12/03/2010     12/31/4712
    ARCHIVE
    Key     AccountID     Marketer    StartDate     EndDate
    1015     124               10526          8/3/2008     12/02/2010
    1033     125               10987         01/01/2011     01/31/2012  
    So my query needs to return the following:
    123     John Doe                        10526     8/3/2008     9/27/2009
    124     Jane Donaldson             10541     12/03/2010     12/31/4712     (this is the later of the two records for this account between archive and marketer_account tables)
    125     Harold Douglas               10987          01/01/2011     01/31/2012     (he is only in archive, so get this record)
    I'm unsure how to proceed in one query.  Note that I am reading in possibly multiple accounts at a time and returning a collection back to .net
    open CURSOR_ACCT
              select AccountID
              from
                     ACCOUNT A,
                     MARKETER_ACCOUNT M,
                     ARCHIVE R
               where A.AccountID = nvl((select max(M.EndDate) from Marketer_account M2
                                                    where M2.AccountID = A.AccountID),
                                                      (select max(R.EndDate) from Archive R2
                                                    where R2.AccountID = A.AccountID)
                   and upper(A.Name) like parameter || '%'
    <can you do a NVL like this?   probably not...   I want to be able to get the MAX record for that account off the MarketerACcount table OR the max record for that account off the Archive table, but not both>
    (parameter could be "DO", so I return all names starting with DO...)

    if I understand your description I would assume that for John Dow we would expect the second row from marketer_account  ("high date ~ which means currently with this marketer"). Here is a solution with analytic functions:
    drop table account;
    drop table marketer_account;
    drop table marketer_account_archive;
    create table account (
        id number
      , name varchar2(20)
    insert into account values (123, 'John Doe');
    insert into account values (124, 'Jane Donaldson');
    insert into account values (125, 'Harold Douglas');
    create table marketer_account (
        key number
      , AccountId number
      , MktKey number
      , FromDt date
      , ToDate date
    insert into marketer_account values (1001, 123, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('27.09.2009', 'dd.mm.yyyy'));
    insert into marketer_account values (1017, 123, 10987, to_date('28.09.2009', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
    insert into marketer_account values (1023, 124, 10541, to_date('03.12.2010', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
    create table marketer_account_archive (
        key number
      , AccountId number
      , MktKey number
      , FromDt date
      , ToDate date
    insert into marketer_account_archive values (1015, 124, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('02.12.2010', 'dd.mm.yyyy'));
    insert into marketer_account_archive values (1033, 125, 10987, to_date('01.01.2011', 'dd.mm.yyyy'), to_date('31.01.2012', 'dd.mm.yyyy'));
    select key, AccountId, MktKey, FromDt, ToDate
         , max(FromDt) over(partition by AccountId) max_FromDt
      from marketer_account
    union all
    select key, AccountId, MktKey, FromDt, ToDate
         , max(FromDt) over(partition by AccountId) max_FromDt
      from marketer_account_archive;
    with
    basedata as (
    select key, AccountId, MktKey, FromDt, ToDate
      from marketer_account
    union all
    select key, AccountId, MktKey, FromDt, ToDate
      from marketer_account_archive
    basedata_with_max_intervals as (
    select key, AccountId, MktKey, FromDt, ToDate
         , row_number() over(partition by AccountId order by FromDt desc) FromDt_Rank
      from basedata
    filtered_basedata as (
    select key, AccountId, MktKey, FromDt, ToDate from basedata_with_max_intervals where FromDt_Rank = 1
    select a.id
         , a.name
         , b.MktKey
         , b.FromDt
         , b.ToDate
      from account a
      join filtered_basedata b
        on (a.id = b.AccountId)
    ID NAME                     MKTKEY FROMDT     TODATE
    123 John Doe                  10987 28.09.2009 31.12.4712
    124 Jane Donaldson            10541 03.12.2010 31.12.4712
    125 Harold Douglas            10987 01.01.2011 31.01.2012
    If your tables are big it could be necessary to do the filtering (according to your condition) in an early step (the first CTE).
    Regards
    Martin

  • How can you see a date on a picture

    When you take pictures how can you go back to see what date you took them

    Not in the Photo app.  You can after you import the photo to your computer.  I have not checked to see if there are any apps allow you to view the date. Photoshop Express does not.

  • HT4337 Can you relocate OS, data to an external SSD,

    I am running Lion on an early 2009 iMac.  I use two external drives, one for Time Machine and the other for LR4 files. 
    Can I relocate OS, date to an external ssd.  I am told that this solution willl marked speed up the machine.
    Thanks
    David

    BD;
    I do think you are incorrect.  I answered my question from a number of site.  In short the answer is a resounding yes, it will speed up the machine markedly!!! As one installs the ssd, you make a clone of the hd on the ssd and go on your merry way.
    Good for me, now I don't have to buy a new machine.
    David

  • Can you increase additional data in ipad?

    CCan you increase additional data in ipad?

    There are some wireless external hard drives that can be used with the iPad.
    Best iPad External Hard Drive Storage Options
    http://www.unlocktips.com/2012/11/best-ipad-mini-external-hard-drive-memory-stor age-options/
    iPad Storage Solutions
    http://www.ipadstoragesolutions.com/iPadWirelessStorage.php
    SanDisk Connect Wireless Media Drive
    http://www.sandisk.com/products/wireless/media-drive/
    SanDisk Wireless Flash Drive
    http://www.sandisk.com/products/wireless/flash-drive/
    WD My Cloud
    http://www.wdc.com/en/products/products.aspx?id=1140
    Another option:
    Expand your iPad's storage capacity with HyperDrive
    http://www.macworld.com/article/1153935/hyperdrive.html
    On the road with a camera, an iPad, and a Hyperdrive
    http://www.macworld.com/article/1160231/ipadhyperdrive.html
     Cheers, Tom

Maybe you are looking for

  • HT4527 Followed all steps - phone not syncing with new itunes/new pc

    I have followed the steps in this article for moving itunes to a new computer. I had no problems with loading my music, itunes folder and mobilesync backups to an external drive and copying them all to a new pc. (Windows 8). Installed itunes onto the

  • Reliability of Spry Accordion Widget

    I posed a question in this forum last week and was unable to get a helpful answer to my problem. I am trying to use the Spry Accordion Widget on a site: http://www.jalc.org/JazzED/s_eac_B.html I have researched here to learn how to get the panels to

  • Preference (.plist) files have a black background with black text

    Like the title says. It's not causing any trouble apart from being unreadable, just a little annoying. Any solutions? Is there a plist file that holds information on how other plist files should look? Oh yeah, this is my other Mac- a G4 with 10.5.8.

  • Build failed when trying to create a custom Android viewer

    I am experiencing the same issue, I get the : 'build failed. try again later' without any further information, when trying to create a custom viewer for android. Is this caused by server overloads or are there some things to check? Any help is apprec

  • Converting raw images into jpeg images

    I am trying to build a small application that can help me to convert raw images (of one of my cam) into JPG image. i have earched in google ans found many API ie, JRAWIO,JAI,mistral-0.9.6.809 and Imagero.. but i am not able to understand how to use t