Get items between in the publishingstartdate and publishingend date in a content type.

Hi,
I have a content type that has  two site columns publishingStartdate and publishing end date.
The content type is added to a document library.
When I create an item of the content type then it  gives two options for publishing start date as immediately and then a date fiel.d
For publishing end date as never and a date control.
Now I want to be able to get only the results which are published as in  todays date is in between  publishing start date and end date.
But  it seems publihsingstart date and publishingend date fields are text type hence I cannot run CAML Query with Greater than  and less than.
Is there a way to get the items and run the caml quey 

Hey Dennis,
Thanks for the reply.
But I am facing a strange issue. That is I also want to be able to get only those items contain certain keyword in the title column.
I am using the following query, But it is not giving the right results. Here is the query 
<Where>
                      <And>
                                                 <Or>
                                                    <And>
                                                      <Or>
                                                          <And>
                                                             <BeginsWith>
                                                                <FieldRef Name='ContentTypeId'
/>
                                                                <Value Type='ContentTypeId'>{0}</Value>
                                                             </BeginsWith>
                                                             <IsNull>
                                                                <FieldRef Name='PublishingStartDate'
/>
                                                             </IsNull>
                                                          </And>
                                                          <Leq>
                                                             <FieldRef Name='PublishingStartDate' />
                                                             <Value Type='DateTime'>
                                                                <Today />
                                                             </Value>
                                                          </Leq>
                                                       </Or>
                                                       <IsNull>
                                                          <FieldRef Name='PublishingEndDate' />
                                                       </IsNull>
                                                    </And>
                                                    <Geq>
                                                       <FieldRef Name='PublishingEndDate' />
                                                       <Value Type='DateTime'>
                                                          <Today />
                                                       </Value>
                                                    </Geq>
                                                 </Or>
                      <Contains>
                      <FieldRef Name='Title' />
                   <Value Type='Text'>{1}</Value>
                    </Contains>
                    </And>
                                                </Where><OrderBy><FieldRef Name='PostedDate' Ascending='False' /></OrderBy>
But it is giving me incorrect results.
Should I be using joins in SPQuery.

Similar Messages

  • I have an app in my app store that is requiring an update but I never purchased the app and when I click update, another apple ID pops up that is not mine.  Now i keep getting reminders to update the app and I cant get rid of it from the app store.  Help.

    I have an app in my app store that is requiring an update but I never purchased the app and when I click update, another apple ID pops up that is not mine.  Now i keep getting reminders to update the app and I cant get rid of it from the app store.  Help.

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store notice. For example, if the App Store says you need to update "Twitter," the hacked app may be "Angry Birds" or something else entirely. Don't make any assumptions about which app you're looking for. To find it, you have to carry out a systematic search.
    Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard (command-C).
    In the Finder, press the key combination command-F to open a search window, or select
    File ▹ Find
    from the menu bar. In the search window, select
    Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu initially showing Kind. From that menu, select  Other...
    A sheet will drop down. In that sheet, select Raw Query and click OK or press return.
    Now there will be a text box to the right of popup menu. Click in that box and paste (command-V).
    The search window will show all the App Store products you've installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    At least one of the items listed in the search window is not among your purchases in the App Store. Move each such item to the Trash. You may be prompted for your administrator password. Empty the Trash.
    Log out and log back in. Test.

  • Getting the lowest and highest dates from a column

    <Praise>Numbers is absolutely incredible. Kudos to the Apple team. From the first time I've used it, it has enabled this average spreadsheet user to create awe-inspiring layouts from average data. I'm extremely excited to see where Apple brings </Praise>
    What I am trying to do though is this. I have a column with dates in it. I'm trying to get the lowest and highest dates in that column for a report. For instance, "Date range between 7/1/2007 and 9/11/2007".
    Any help would be very much appreciated

    Let me also pose this. I've been asked to create a two date ranges for this from the same data. This report will need to be updated every two months. Is there a way to specify the spreadsheet to select only rows with a date between X and Y for processing?
    Or, more likely, is there a way to access a cell name by reference from another field? Such that I have a "Current From", "Current To", "Historic From", and "Historic To" column. The value of these fields could be references to a row number that has the beginning and ending date, so that it selects all of the rows in between.
    So I would have something like SUM(SourceSheet :: SourceTable :: A{CurrentTable :: A2} : SourceSheet :: SourceTable :: A{CurrentTable :: A3}) where CurrentTable A2 and A3 are "2" and "6" for rows A2:A6. Is this even possible? Hopefully I'm overcomplicating it and there's a magical function out there that I've missed.

  • IOS Newsstand: Cannot install item please restart the app and download your purchase again.

    I'm struggling with iOS 8 Newsstand. I've downloaded the new issue of "Intelligent Life." The issue opens then crashes after one page turn. When I try to reopen the issue, I get an error message, "Cannot install item please restart the app and download your purchase again." I've deleted the app and reinstalled it but no change. I've tried to "Restore All Purchases" also to no avail. Advice?
    Other Newsstand titles work normally.
    Thank you.

    Hello hp12c,
    If you are still having crashing issues with the app, check against the article below to continue your troubleshooting. Check to see if magazine has been updated to be compatible with iOS 8. If you are still running into issues, you may need to contact the developer.
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open
    http://support.apple.com/kb/ts1702
    Regards,
    -Norm G.

  • My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    Settings>Mail, Contacts, Calendars>Calendars>Sync>All Events.
    Note: If you're using a work Exchange account, the administrator my have restricted your options for this setting.

  • My iTunes says I owe $5.25 for songs that I have already paid for and am not going to pay for again but I want to get some apps from the store and now there's a hold on my account. Who do I talk to get the hold taken off

    I explained it most in my question but I am getting charged double for songs that I have already paid for and am not going to pay for twice because that is messed up. But I want to get some apps from the store and it wont let me because of $5.25. Who can I talk to about resolving this issue?

    You're right, it would have been covered under warranty. But because of the user damage, chances are there's a 200-something dollar fee . If you explain to them that it had a defect previously, they might replace it for you at no charge. **MIGHT**. But they would have to believe that it had a defect previously.

  • I just bought the new ipod touch, but when I try to sync it I get told to use the cloud and download from there.  How do I sync it to my itunes so that I get all my songs without going through cloud? Otherwise if this isn't possible I am taking this back!

    I just bought the new ipod touch, but when I try to sync it I get told to use the cloud and download from there.  How do I sync it to my itunes so that I get all my songs without going through cloud? Otherwise if this isn't possible I am taking this back!

    Thanks for no help... but for anyone else, turn off itunes match on the ipod

  • I have all my CDs on my iPod, my old laptop crashed. How can I get my music to the cloud and/or my iPad

    I have all my CDs on my iPod, my old laptop crashed. How can I get my music to the cloud and/or my iPad

    Hi
    Thanks for the reply, not the answer I was hoping for, one last thing if I can get the music onto a computer can I then add it to the iTunes library.
    Really don't want to have to reload it all again

  • How do I get my Reminders on the iPad and iPhone to show up on my Mac laptop?

    How do I get my Reminders on the iPad and the iPhone to show up on my Mac Laptop?

    on your mac go to system preferences and login to iCloud. Ensure that reminders are also ticked so it can sync with you iPhone and ipad

  • How do I get page numbers on the left and right side of the page?

    I am finishing up a book in PAGES '08 on my Mac.
    How do I get page numbers on the left and right side of the page.
    I can get them on the page but I'd like them on the left and right sides.
    Evan

    If the icons are from dmg files that were used to install 3rd party apps like this one for VueScan
    Control (right) - click on the open dmg icon and select "Eject  xxxx" from the contextual window.
    Then find the actual dmg file associated with those icons
    and drag to the Trash in the Dock and empty.

  • Where is the best place to get/read information of the pros and cons on updating my OS from Snow Leopard to the current OS?

    Where is the best place to get/read information on the pros and cons of updating my OS from Snow Leopard to the current OS?
    I have an iMac 27" intel, purchased Nov 2009.  I am currently using 10.6.8

    Apple OS 10.9 Mavericks:
    Quick overview:
    https://help.apple.com/osx-mavericks/whats-new-from-mountain-lion
    OS X Mavericks supports the following Macs that are already running a minimum of Snow Leopard:
    iMac (Mid-2007 or later)
    MacBook (13-inch Aluminum, Late 2008), (13-inch, Early 2009 or later)
    MacBook Pro (13-inch, Mid-2009 or later), (15-inch, Mid/Late 2007 or later), (17-inch, Late 2007 or later)
    MacBook Air (Late 2008 or later)
    Mac Mini (Early 2009 or later)
    Mac Pro (Early 2008 or later)
    Xserve (Early 2009)
    Transitioning your Mac from Mountain Lion to Apple's new OS X 10.9 Mavericks
    http://appleinsider.com/articles/13/10/23/transitioning-your-mac-from-mountain-l ion-to-apples-new-os-x-109-mavericks

  • Getting the start  and end dates of the week

    Hi,
    I was stuck with a problem in getting the start date and end date of the week,i know the month ,week and year also,with these three values how can i get the start and end dates of a week.please help me
    Thanks

    There is no simple way. It has to be a math calculation.
    There are several ways you can get the dates. First you have to know what day is January 1st and what day is december 31st for a particular year. Second you have to check whether the given year is a leap year or not. Based on the abvove information you should be able to find out what day is a particular date.
    Hope this helps to get you started.
    - Venkat Dhurjati.

  • When I try to print labels I get no preview of the labels and then it just prints blank pages. Help please

    When I try to print labels I get no preview of the labels and then it just prints blank pages. Help please

    I post the same instructions almost every day...
    Change the Adobe Reader Preferences
    Documents: set 'View documents in PDF/A mode' to Never
    Security (Enhanced): disable Protected Mode at Startup

  • Every time I go to download it, it gets about 97% of the way and then says there's an error.

    Every time I go to download it, it gets about 97% of the way and then says theres an error.
    I've closed down my safari completely so i know its not that.
    I've been trying to do this for a couple of days now and I'm completely stumped on what to do.
    please help!!!

    Same here. For the last several versions. No matter how many times it tells you to start over.

  • Cannot Install Item / Please restart the app and download your purchase again

    I haven’t had this error message myself but one of my colleagues has, any ideas?
    Cannot Install Item
    Please restart the app and download your purchase again
    Three of our team (including me) have now been able to download the entire app after first archiving and starting afresh but the forth guy (the Editor in Chief) is still struggling with only half available. He has deleted the Content Viewer app and downloaded it again without being able to download more than half the app (560 MB total).We are 10 days away from our deadline so at a critical stage.

    We just had a customer complain that they couldn't sign-in or upate.  We tried it on our devices and were able to sign-in successfully.  Then we tried archiving and re-downloading the folio they were trying to download.  It did the start-stop thing with the download numbers but eventually finished without me doing anything.  Then when it got to the install part of the process it only progressed to a tiny sliver and then didn't progress any further for at least 15 minutes.  I then canceled, re-downloaded again and the install process got to about 40% before hanging indefinitely.  I quit the Adobe Content Viewer app, restarted it and tapped on "resume".  It took a couple of minutes but it did finish the install.  When viewing the folio, about 40% of the way into the articles one of them was completely gray.  Essentially it wasn't downloaded/installed correctly.  I'm wondering if this might have something to do with the screen going to sleep so I changed the timeout from 10 minutes to 30 minutes.  The download and installation were successful, so I have archived and am re-downloading again just to hopefully repeat the success.  The folio is 306MB, so it's not huge but not small either.  Lots of videos and multi-state objects are in this folio but it has been downloaded and viewed successfully many times before.  No changes have been made to this folio for at least a couple of weeks.
    I'm very disappointed that we aren't past the point of these things still happening.  It makes it very difficult for us to pitch tablet apps to new customers when simple things like delivery to the end user is so unpredictable and frustrating for both our customers and us.  I hope Adobe realizes that lack of reliability is going to stop many users like our company from being able to recommend their system to potential digital publishing customers.  There are lots of companies/potential customers that want tablet apps, however why should we try to court their business if the platform isn't reliable?  We end up looking like incompetent fools because the system we told them to invest in isn't able to perform basic functions reliably.  If Adobe wants to make money from us and our customers we need the standard/basic features of Adobe's digital publishing system to work every hour of every day.  Rare exceptions and problems will always happen with any technology (even utilities like electricity and city water aren't bulletproof), however the problems users are experiencing haven't been rare.  We were an early adopter starting with the pre-release program in the hopes that we could offer customers a great solution and be part of the beginning of another great Adobe solution.  Up to this point we've tried to be very understanding of early growing pains with the technology and have apologized to our customers for the lack of a fully functional system many times and so far they have been patient and understanding.  The patience and understanding from both us and our customers is beginning to wear very thin.
    Andrew

Maybe you are looking for

  • Family sharing music who work on different computers

    hi everyone, here is the question, which will start with a long explaination. my desktop computer is the "main" computer of the house. i have about 35,000 songs on it in my itunes. everyone in the house (wife & son) uses my music (which is everyone's

  • External Hard Drive for Mac AND PC

    I need to purchase an external Hard Drive to be able to back up both my iMac and my partner's PC. I am currently looking at buying either: Iomega UltraMax Hard Drive 500GB FireWire 400/USB 2.0 OR Iomega 500GB Minimax Hard Drive with Dual Interface +

  • Messages in Search help Pop Up

    Hello Experts, I have created a Elementary search help in Data dictionary and have used for Web UI Fields. Now the search criteria is appearing as mentioned in elementary search help. I want to throw a error message if the user clicks on search witho

  • Enhancements in CRM IC Webclient

    Hi, We are using SAP CRM Webclient as UI for backend ISU system to achieve Utility specific Customer service scenarios. There are lot of Enhancements happening in ISU Backend processes. My question: How do we realize these enhancments in CRM  IC Webc

  • Standalone WLS broken after unsuccessfull deployment

    Hi OTN, We've got a standalone WLS 10.3 on RedHat 5 (VM on Windows 2008) with ADF runtime installed. This server was used for development of ADF applications from one computer for a certain time. Few days ago my colleague tried to deploy his simple A