How do I take a date string, add "X" days to it, and display a new date?

I have a date listed in a text string. I would like to convert it to a time stamp, and take a variable number of days, converted to seconds, added to the date, and displayed as a correct date. Example: 9/1/2011 adding 35 days is 10/6/2011. The trick seems to be getting it correct for every month and year combination. How can I accomplish this? I was thinking along the lines of time stamps, but any method that works consistently would be fine.
Thank you!
Solved!
Go to Solution.

You are right, use timestamps, they will take care of the working out the correct date for you.
Interpret your string as a timestamp.
Add your offset (use a numeric add, and consider using units on your variable)
Reinterpret your datestamp as a string.
Thoric (CLA, CLED, CTD and LabVIEW Champion)

Similar Messages

  • How do I take a movie created in iMovie on my iPad and burn it to a DVD

    How do I take a movie created in iMovie on my iPad and burn it to a DVD?

    Word count: Tap the wrench icon at the top and choose Settings from the menu that opens. Turn on Word Count.
    Do you have iCloud turned on on your iMac? You need to make sure Documents and Data syncing to iCloud is turned on on the computer.

  • When I want to play music out loud the volume bar disappears and it won't play music or any sound. This sometimes happens with head phones in aswell. How do I fix it? I have tried to reset settings and wipe all the data of it but it didn't work.help!

    When I want to play music out loud the volume bar disappears and it won't play music or any sound. This sometimes happens with head phones in aswell. How do I fix it? I have tried to reset settings and wipe all the data of it but it didn't work.help!     

    Although you say you have let the battery drain, was it for long enough? Since nothing else that you've tried so far has worked, I suggest that you leave the iPod unplugged for at least four days, preferably a week. That way, if something is stopping the iPod from turning the screen on, then whatever it is will drain the battrey. However, since the screen isn't on, that may take longer than if the screen was on.
    Then, after that time, plug the iPod into a power source and leave it alone for at least thirty minutes. Only after thirty minutes will it show any signs of life, but you should leave it until it is fully charged before trying to use it.
    If you get to this stage, the fact that the battery has drained will cause the iPod to reset when it springs back to life.
    Let us know how you get on.

  • How do I take 300 dpi photos with my iPhone 4s? And how do I export them to my MacBook Pro at 300 dpi to use as I want to print photos.

    How do I take 300 dpi photos with my iPhone 4s?
    And how do I export them to my MacBook Pro at 300 dpi to use as I want to print photos.
    I have been using the standard camera on the iPhone and require 300 dpi to create photo books as the photos are resized according the layout.
    Your time and assistance in appreciated.
    Thanks

    Thanks Tonefox!
    After looking at a few of the links I found a mathematical equation that assisted me.
    Inches = Pixels/DPI
    eg: 3 inches = 300 pixels/100 DPI
    Using this equation and the fact that iPhone 4s takes photos that are 3264 x 2448 I was able to work out the largest print I could make with 300 DPI.
    Width 3264 pix/ 300 DPI = 10.88 inches
    Height 2448 pix/ 300 DPI = 8.16 inches
    Therefore, the largest print (with 300DPI) I can make of these photos is 10.88 inches x 8.16 inches.
    Which is great!
    So is it critical for me to change the dpi in say photoshop or does it not matter as long as I don't go above the 10.88 inches x 8.16 inches?
    From what I can gather the smaller I resize the photo the higher the DPI and the bigger I stretch the photo the lower the DPI?
    Further clarification will be much appreciated. Thanks

  • How do I delete one of the user accounts on my computer and not lose the data in that account?

    How do I delete one of the user accounts on my computer and not lose the data in that account?

    I actually have the opposite of this problem. haha.
    https://discussions.apple.com/thread/4484354

  • TS3376 how do i take my phone off lock mode from the lost and track

    how do i take my phone off lock mode from the lost and track

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T, Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. Lost or Stolen iPhone? Here’s What to do
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on MobileMe
      3. OS X Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
      1. VUWER 1.5.4
      2. Sneaky ******* 0.2.0
      3. Undercover 4.7
      4. LoJack for Laptops Premium Mac
      5. STEM 2.1
      6. MacPhoneHome 3.5

  • How to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart

    how to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart 

    Hi kdm,
    please stick in one thread for the same topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • HT1481 How do I get rid of my music on my ipod shuffle and re enter new songs?

    How do I get rid of old songs on my ipod shuffle and re enter new songs??

    This is document lists the four iPod shuffle models and the ways to sync music to the shuffle.
    http://support.apple.com/kb/HT1719
    The way you remove songs depends on the model (1st and 2nd gen versus 3rd and 4th gen), and the method being used to add songs.  I don't know your specifics (please provide), I'll go with one possibility...
    You have a 4th (current) gen shuffle and you use the manual method to load the shuffle, by dragging songs to the shuffle from your iTunes library in iTunes (or using the Autofill feature). If that is your shuffle model and how you load it...
    First, in the latest iTunes, the sidebar can be hidden.  To show it, go up to the menu bar, under View, and select Show Sidebar.
    To remove songs, select the shuffle in the sidebar, under DEVICES.  "Drop down" its content list, which is indented below the iPod.  Click on Music there.  Over to the right, you see a list of songs currently on the shuffle.  Select the song you want to remove, and hit the Delete key on keyboard.  Confirm action.  You can do this with one song, a selection of songs, or the entire list (by selecting Select All from the File menu). 
    If you have a 1st or 2nd gen shuffle, or you use automatic syncing (not manual loading or Autofill), please post back.

  • HT1386 I am having problem syncing my itunes data from my computer to my ipod and ipad. My data is not fully transferred.  Can someone help me?

    I am having problems syncing my itunes data from my computer to my ipod and ipad.  The data from my computer is not transferring.  Can someone help me?

    What happens when you try to sync?
    Does any media sync?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod        

  • If I take my bank card details off my itunes account and opened a new itunes account what would happen to the old account?

    If I take my bank card details off my itunes account and opened a new itunes account what would happen to the old account?

    you're more likely to get quick and accurate answers to an iTunes question in the iTunes forum, this is the GarageBand forum

  • If I take my bank card details off my itunes account and open a new itunes account what will happen to the old account?

    If I take my bank card details off my itunes account and open a new itunes account what will happen to the old account?

    you're more likely to get quick and accurate answers to an iTunes question in the iTunes forum, this is the GarageBand forum

  • How to retrieve Task Lists from All Subsites to the Parent Site and display in Grid view using CAML Query

    How to retrieve Task Lists from All Subsites to the Parent Site and display in  Grid view using CAML Query + object model

    do u just want task list or items under task list for all subsites
    for items use spsitedataquery ref
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx use recursive to get it from alll subsite under site collection
    for tasklist only u can a simply use a for loop to find in all subsite
    Manish Sati

  • How do I upload all my apps, calendars, etc from old iPad and iPhone to new iPad air?

    How do I upload all my apps, calendars, etc from old iPad and iPhone to new iPad air?

    provided you are using the same Apple ID
    for Apps
      just launch the App Store App
        tap on Purchased at the bottom of the page.
          tap on particular Apps you want to download and install..
    for other items
      launch the Settings App
        scroll left pane down a bit, just below Privacy
          tap on iCloud
            Turn on iCloud sharing for particular items
              Contacts, Calendars, Mail, Safari (favorites)
    Turn on iCloud sharing on your old devices and your new devices.
      Wait 10 or 15 minutes, or so depending on your WiFi network..
        You should start to see these shared items appear on your new device..
    You can turn iCloud sharing off on your old devices (and new device)
      after you are confident enough items have transferred.

  • HT201328 how do i unlock my iphone4 when i reently chnaged the password and forget the new code

    How do I unlock my Iphone4 when I recently changed my password and forgot the new one?

    http://support.apple.com/kb/ht1212

  • Retain data in String Display untill new data is delivered in RS-232

    I am using Labview 8.6 on Windows XP OS and acquiring signal from RS-232 through COM1 port to which I have connected non NI instrument. My instrument sends data for flash of second and it displayed into String Indicator for flash of second. How to hold this data untill I get new data from instrument. I have tried to select "re-initialise to default value" and "make current value default" but none of them getting selected. I want data to be retained untill new data comes. I have enclosed VI as well as Picture file. Pl advice. 
    Attachments:
    HPLC Flow Meter 3.vi ‏32 KB
    HPLC FLow 3.JPG ‏123 KB

    -Looks you are sending or running the while loop every 5ms, are you sure you want this fast? This is the reason the data comes in flash(i think 5ms)
    -I use shift register to store something from previous iterations generally.
    -You need to keep case structure to check when new data comes and when it does, replace the value in that string.
    -else pass previous value to string.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

Maybe you are looking for

  • Opening Excel sheet from server

    Hi I have one requirement to open Excel Sheet. The Excel sheet is residing in a directory parallel to WEB-INF. I am using Jboss server in Linux. in UI whenever I click on link I have to open Excel sheet from the server. Before opening Excel sheet I h

  • Old Oracle Session with Tomcat is not kiiling automatically

    Hi, I am facing a problem of increasing inactive oracle sessions with tomcat, Old Oracle sessions with tomcat are visible with new one. if somebaody did not restarted tomcat gracefully, then does Oracle keep the session connected or is there any way

  • Why cant i connect my macbook to the internet

    i tried to connect my new macbook to my home wifi but if wont work. what should i do ?

  • No billing document generated

    hi gurus, this is very urgent, in downpayment senario after sales order when i am going for order related billing it is stating that "document doesnot contains any item with open quantities" plese resolve this problem asap.

  • OBIEE 11g Refresh GUIDs for Presentation Services

    Hi Friends, I am facing problem while trying to refresh the GUIDs for the Presentation services during migration from DEV to QA When I migrated RPD and Catalog from DEV to QA, the user weblogic was not able to login. So I modified the NQSConfig.INI f