More fun with the addition of dates

It drives me crazy.

I have a code that works:

//DateTimeField1 initialisation:
$.rawValue = Num2Date( Date(), "DD-MM-YYYY")

//Button to add 365 days:
DateTimeField1.rawValue = Num2Date((Date2Num(DateTimeField1.rawValue,"DD-MM-YYYY") + 365), "DD-MM-YYYY")

I'm changing it works with a date field where the date is entered instead of initalised and auto-calcule another field of date with a date of one year in the future.

So, I tried to edit it several ways and either get nothing or December 31, 1900. The following code gives to this date, but at least it is in the correct format.

ContactReviewDate.rawValue = Num2Date((Date2Num($.rawValue,"DD-MM-YYYY") + 365), "DD-MM-YYYY")

I tried he broke with variables, different display formats, IsoDate2Num instead of Date2Num...

I tried variations of the following, which worked for me in a form I've tested a few months ago and can't put on, either:

var d = IsoDate2Num($)
Date2.rawValue = Num2Date(d + 365)

I think that it is related to date formatting, but it can't nail.

Attached form. It's in the top section on the right - "Request Date" is the date field is entered and "Request Review/Closed Date" is the field that gets a year added to it.

Just below here in bright orange, is the field + button of the first block of code above, which works very well.

Hi Jono,

I always thought was a bit of a nightmare.

If (HasValue ($)) then

var Date2Num = $vdate ($, "YYYY-MM-DD", "en_US")

var vAddYear = $vdate + 365

ContactReviewDate = Num2Date (vAddYear, "YYYY - MM - DD", "en_US")

endif

I know that the regional settings are optional, but I find that if I in and model the value of "YYYY-MM-DD" regardless of the reason for the field, it works.

Good luck

Niall

Tags: Adobe LiveCycle

Similar Questions

  • No problem with the addition of a Kingston SSDNow V300 240 GB SDD to a D7-1245dx?

    A knowledge of any problems with the addition of a Kingston SSDNow V300 240 GB SDD to a D7-1245dx? Its size is 7mm width 69,85 mm x depth 100mm height but not sure of the size of the computer laptop berries/caddy supports

    Decide whether to use the laptop for a little longer so to upgrade the system to a Kingston 240 GB SDD drive and move the current drive to the secondary location (already got 2nd coming of caddy). It lets me do a bit more space on the laptop in addition to increasing performance.  Figure between an SSD and get up to 8 GB ram it should last a little longer.

    You will have a shopping cart for the SSD, but it looks like you have an and get a second wagon. Dv7-1000 series does not use a cable or connector. the hard disk plug right into SATA ports on the motherboard. 7mm drive has the connectors SATA and the mounting holes exactly in the same place as a 9.5 mm drive. All is just shorter so the reader rides low in the caddy. As a swimming pool with 20% water let out. 7mm SSD works perfectly. Windows 7 or 8/8.1 are preferred; Vista is not configured to treat SSDS as well or easily.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • Firefox Version 27 Action Menu error in Reporting Services. An error has occurred with the extraction of data.

    Hello, since I've updated for Firefox 27.0.1 on Windows 7, I have a problem with Reporting Services on a Sharepoint site. It is a site of Sharepoint 2010 with SQL Server Reporting Services 2012 Sharepoint integrated mode. I was already on Firefox version 26 and didn't meet with this problem.

    When a report is opened and you use the Actions link on the Reporting Services toolbar, I get the following error messages.

    An error has occurred with the extraction of data. Please, refresh the page and try again.

    I tried updating to the beta version of Firefox 28 but the same error occurs. I see that someone else is having the same problem here. http://SharePoint-community.NET/forum/topics/reporting-service-and-Firefox-27

    Any help would be appreciated. Thank you!

    Ryan

    Firefox version 28.0 has corrected this problem. Thank you!

  • can someone help me with the addition of an account for child microsoft under a perintal account

    need of assistants with you that links child account to perintal for the child account is connected to Xbox live Microsoft account. He is asked to accept the terms of use on the Xbox site. She also asked inter in perinatal password and ID. The perinatal e-mail password was disassociated from the perinatal account. went to account.live.com account add kid account with parental account but how always to choose the option to add an account it takes me to a new page and I don, t know how to navigate the page. Can someone from Microsoft help me please with the addition of my son's account to my account.

    Hello

    Did you manage on behalf of your son using a parent account? You have already set up a parental control using the Windows parental control? If it isn't yet, please visit the link below on how to set up parental controls on your son's account by using Windows parental control:

    Bind the child account for a Parent account

    You can also download the installer of Windows parental control in the link below:

    http://Windows.Microsoft.com/en-us/Windows-Live/Essentials-home

    If you have any other questions, please let us know.

    Thank you!

  • Hi, I had problems with the addition of soundtrack to Adobe premiere elements 13. When I add it or drag it immediately comes crashing windows, where says "Adobe Premiere Elements has stopped working". I can add videos with no problems, but cannot add any

    Hi, I had problems with the addition of soundtrack to Adobe premiere elements 13. When I add or drag it happens immediately windows crash, where says "Adobe Premiere Elements has stopped working". I can add videos with no problems, but cannot add .mp3 files.

    I had Windows 8.1, 2.4 GHz, 6 GB of RAM. How to solve this problem?

    Fixed a problem when converting the mp3 file. WAV...

    some poor Adobe Premiere Elements if there is for example simple bug in the software.  Waste of money for this software.

  • Need help get data with the most recent date of entry into

    Hey guys;

    I need help with fine tuning a query to get the one with the most recent implementation.

    Here's my current query:

    /**********************************************
    Select sge.seal_group_id,
    SGE.equipment_id,
    SGE.effective_date
    of seal_group_equipment EMS.
    seal_group sg
    where equipment_id = 48801
    AND EMS. SEAL_GROUP_ID = SG. SEAL_GROUP_ID
    and sge.end_date is null
    Group of sge.equipment_id, sge.seal_group_id, sge.effective_date
    After having sge.effective_date = max (sge.effective_date)

    ******************************************************/

    Which produces the following results:
    SEAL_GROUP_ID - EQUIPMENT_ID - EFFECTIVE_DATE
    25-48801 - 01/01/1993-00: 00:00
    11730-48801 - 22/08/2003 08:42:11


    What I really need, is to show only the line with the most recent date of entry into
    I hope someone can help
    Thank you

    MAX will not work because the SEAL_GROUP_ID could depart. I would say analytical:

    select seal_group_id,
    equipment_id,
    effective_date
    from (
    select sge.seal_group_id,
    sge.equipment_id,
    sge.effective_date,
    RANK() over (partition by equipment_id order by effective_date desc) r
    from seal_group_equipment sge,
    seal_group sg
    where equipment_id = 48801
    AND SGE.SEAL_GROUP_ID = SG.SEAL_GROUP_ID
    and sge.end_date is null)
    where r = 1;
    

    Keep in mind if two records have the same effective_date, they would both appear.

    Note: query above has not been tested, since there is no script provided.

  • Is it possible to recover a database with the copy of data files (cp), while the database has been opened?

    Hello

    We know we need to do a backup of an oracle database by using the appropriate tool, in most cases the rman. But we have in our society, a person who helps us with the backup of all the databases oracle we have. Thus, in addition to the rman backups, we do a copy (cp) with the open database of all files in oracle database, (without start backup) including of course spfile, controlfile, etc.. My question is: can recover us my database using this copied data files? or are we just wasting disk space on our backup environment?

    Kind regards
    Melo.

    We're doing a copy (cp) with the open database of all files in oracle database, (without start backup) including of course spfile, controlfile, etc..

    As EdStevens said, it's essentially a backup without value. When you copy files from a backup ' hot', there may be inconsistencies in the blocks of the file as transactions actively edit these blocks while the copy is made. Mechanism of Oracle backups hot managed by users is to put the database or tablespace in backup mode, copy the files, and then the end backup mode. Without this mechanism, the chances of being able to restore from this backup are very, very thin.

    My question is: can recover us my database using this copied data files?

    My question is... have you tested recovery? If the recovery has been piloted, then called the answer to this question. Please read the end of this blog post for more information:

    Blog of Peasland before necessary recovery database backups"

    See you soon,.
    Brian

  • temperature sensor with the acquisition of data usb-6009

    Greeting

    I want to use a sensor with usb-6009 to save the variation of body temperature about 15 minutes and then use these data in labview.

    If you please you can advise me with the best low-cost use and the way/circuit sensor connect it to the usb-6009.

    Hi ba7soun,

    If you can use with USB-6009 LM35 depends on the range of output voltage of the sensor. I understand that it requires a 5V supply with respect to the ground, which you can provide to the USB-6009 (more than 200 my should not come from the USB-6009).

    The maximum range of the USB-6009 is - 10V to + 10V, while the minimum range is - 1V to + 1V, also probably the output signal of the LM35 will be in this range. What you need to do is to compare the full range of the output signal with the range of the DAQ divided by 2exp (14) (because it is a 14 bit ADC) and ensure that the first is much more than the latter.

    Kind regards

    Condette Dhruv.

  • Problem with the acquisition of data on XP Embedded

    Hello

    I'm using LabView 8.5, 8.7 DAQmx. My application is collection of data of NI USB-6009 14bits. I tried to create applications for tablet PC with installed Windows Xp Embedded. I created the installer on tablet with installed Windows 2000.  I solved all the problems that occurs during installation. First version of the program have assistant DAQ in a main VI who collect and process the data. It worked properly on Xp Embedded. Second version was split into two of the Subvi. One is data collection and secondary processing. Each VI have own while loop. Both Subvi is placed in the large loop and they start at the same time. I am writing all the data to global variables. On PC with the windows application created 2000 worked properly. Error occurs when I moved it to Xp embedded. VI, which is the collection of data, the error see the 200361 code and text:

    DAQmx reading (analog 1-d Wfm NChan NSamp) .vi:2
    The task name: _unnamedTask<0>

    I know its something with the sampling and the clock, but I do not see where is the problem. In the main loop and two Subvi I 'wait until the next ms Multiple"block with a value of 200. DAQ Assistant were set as follows:

    Price: 1000

    Number of samples: 1000

    Timeout (s): 10

    Can you tell which can cause this error?

    If you would like more information please write here.

    Problem solved. There was connection between PC and USB-6009. Program works when I connect the USB-6009 housing directly to the PC. Previous connection was through usb hub.

    Thanks anyway.

  • TDMS replace specific fields with the new string data

    Hello

    Wonder if someone could advise a more easy, more clean solution or I may end up making a big mess on my diagram!

    I use DaqmxConfigureLogging.vi to write data in the .tdms and this file everything works. Unfortunately, this vi affects physical names such as Dev1/ai0 channel names in Journal of root and group of tdms files.

    I would like to read individual fields where they are written and replace them with the names of channel. The location of these channel names is fixed on the tdms file.  However, I noticed using file i/o functions, such as file open/close/set position could not work, because these files do not seem to recognize the .tdms file. And it is not all fields tdms functions you want the value of the positions on sheets of root/channel files tdms and read fields desired as string data.

    Any suggestions? I can miss something quite simple!

    crossrulz wrote:

    k waris wrote:

    "In fact, it uses some names you give the channels and groups.

    I use Dev1 / ai0:15 connect all 16 channels. Unfortunately if using 'name to assign' entry will not do the job in my case!

    Of course, it will be.  Use a loop FOR with DAQmx channel create to create each channel and give them a name.

    Just to clarify what I meant here...

  • implementation of the table with the scroll bar. (data scrolling)

    Hello

    I want to show the web service data in the table with scroll bar using java script or html or css .actuall I want only a part of the screen is not whole screen scrollable. can you suggest how it is possible.any suggestion? I used phone gap technology. I used iscroll but it does not work in blackberry data are not displayed in the Simulator... Help, please

    Thank you

    ravi1989 wrote:

    Hello

    I want to show the web service data in the table with scroll bar using java script or html or css .actuall I want only a part of the screen is not whole screen scrollable. can you suggest how it is possible.any suggestion? I used phone gap technology. I used iscroll but it does not work in blackberry data are not displayed in the Simulator... Help, please

    According to devices/operating systems that you want to support, you could give bbUI.js a change. It works really well in most of the cases, and I think there are a lot of things you don't need to worry more because bbUI.js is just for you.

    Look more at the scrollPanel example that does exactly what it takes, a part only of the entire screen of scrolling you can configure a height in the HTML source code directly.

  • BlackBerry smartphone Podcasts downloads fail more often with the app native podcast

    I always use a Pearl 3G with OS 6. I use it every day to listen to podcasts and books while I'm working. The last few months I had several podcast subscriptions fail to download some episodes. The subscription xml links are still good for some of them that I sometimes get the automatic download of a new episode. When I go on ' restart any missed "they try again several times and eventually fail without any error messages so I can't understand what is happening. What that this be amended to how work year last RSS podcast feed?

    I think I use version 1.6 of podcast. It is what came with the operating system, and then put through the appworld and did not have an update for years.

    My memory card is not full.

    I tested for problems of connection and insured that I was connected several times in a new attempt to download has failed.

    More big podcasts of other links rss download, so I don't think it's a size cap.

    Is it possible the length of file name or characters are a problem?

    Edit, for example, if someone listens to IdleThumbs.net, I get many episodes ignored their RSS feeds in particular.

    So, I went from Mobilicity as a supplier to the WIND and now download all my podcasts. At my data provider blacken my downloads somehow? Looks suspicious, even if there was swap wireless spectrum goes on in time between providers of cellular services, which is the reason why I've switched back to wind in the first place (and because Rogers bought Mobilicity).

    I downloaded 1.2 GB of podcasts delayed the day after the passage of data providers until my battery ran out.

  • With the help of data from the database on my Web page

    Hello

    This is probably a simple great question, so I apologize in advance. I looked through a lot of information on BC and I can't seem to find the answer to my question (although a lot of it seems to go over my head that I'm a n00b full BC., and I feel that my hands are tied without being able to just stir up the something in Python or PHP!).

    I am trying to create a Web page that displays a single product (the entire site exists just for 1 product), and the user can click on the color chart of different color in order to customize it. I would like my client (owner of site) so you can easily add new colors (using the hexadecimal code) for different parts of the product.

    So I basically just need a place where the client can enter these values, and then I can write on my page in JavaScript format and build dynamic page using JavaScript.

    It seemed that the way to do would be to create a new "Web App" inside the BC. I did, and I created a "Web App Item" called "Data". Under "Data", I added a 'field Item' named 'Color', which is a multiline text area. I entered a few different hexadecimal codes like this:

    000000

    FFFFFF

    003366

    (I thought that I can analyze the lines with JS)

    The problem, I comes across however, is to know how to enter these data in my source code on my Web page? I created a Web page and I put the code in it:

    {module_webapps, 6042, one,}

    but this will display a list of links, with a link to 'Data', and then if you click on "Data" you go to a separate web page that says only: "Data" in this topic. Very strange.

    Is there a way I can get the data entered here in the source of my Web page? (Or is there a better way to do it?)

    As a more general question... It's basically just how use BC as a CMS and have custom fields that you can then access your web page. A bit like plugin, WordPress Advanced Custom Fields, if you're familiar with that. (I know that's not WordPress, but just a way that I can access certain values that my client has entered in)

    Thanks in advance!

    Heather

    You may be better to use electronic commerce and assign different attributes for your colors?

  • Problem with the query and date

    I'm trying to show only the specific results in my query based on the following:

    If the 'agreedate' is greater than today's date, less than 60 days, show it. Otherwise I don't want results.

    I always get the results of the last year and I don't know why.

    Here is my code:

    <!-the value date today less than 60 days. This works and shows the correct date->

    < cfset invitelimit = #now () # >
    < cfset invitelimit = #DateFormat (DateAdd (would be ', - 60, invitelimit), 'dd-mm-yyyy') #.

    <! - query items from the db and try to catch only to those with a more agreedate then the invitelimit date - >


    < name cfquery = "qinvite" datasource = "#Application.ds #" >

    SELECT DISTINCT * from team a

    INNER JOIN followed b ON a.id = b.team_id
    INNER JOIN termsagreement c ON a.login = c.login

    WHERE c.agreedate > #invitelimit # AND b.comp_id = 0

    Group By a.teamname

    < / cfquery >

    First of all.  Confirm that the "argeedate" column is a datetime column.  Not another type of data that would be much more difficult to work with.

    Secondly, you should provide an appropriate database datetime value.  The easiest way would be with the tag.

    I.E.

    WHERE

    c.agreedate > AND

    b.comp_id =

  • Why my iphone 6 more stuck with the apple logo and the black screen after the factory reset?

    I'm selling my iphone 6 Plus I did a factory reset, but it has stuck on a black screen with the white apple journal for more than an hour, why what is happening?

    Force the restart: press the lock and home buttons until the Apple logo appears again.

Maybe you are looking for

  • USB detects not unless rebooted Satellite C650

    Hello I have a laptop C650 6 - months old. Recently, I have USB problems. 1. If I turn on the laptop and insert USB key, it works very well. If I remove it and insert it, it does not work.Or if I insert another USB key at the same time. 2. the first

  • I have a virus on my Macbook help!

    I am almost certain that my Macbook Pro has a virus! Whenever I am on a site (a site Web, anyone) my mouse icon will blink then the site will open in a different tab and the original tab turns into an ad! It has been going for probably two weeks now

  • HP ENVY 5530 all-in-one: print of Google Drive on a chromebook

    I can print from my emails, but cannot print items in my google reader. On my chromebook, he says it is printing, but does not work. Thanks for any help.

  • Sticker custom control

    Hello I need help. I'm changing this control in order to put a '1' on it. I need to merge the 1 and the graphics race so when the user can click on the '1' button and the button works.  The button does not work now, when you try to click on the '1 '.

  • Watermark photos

    I would like to place a watermark on my photos before I have download on Facebook.  How can I do this?  How can I keep the watermark to show on my original photo?