Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Knowledge Partner
Knowledge Partner
181 views

Re: set a value of date type

On 8/7/2012 3:36 PM, eden silva wrote:
>
> hi, I work a jdbc driver in IDM4.0
>
> I want to store in a LocalVariable the value of the date + 30 days
>
> for example: 07/08/2012 + 30 days = 07/09/2012


Convert the start date to CTIME in a variable. This is a count of
seconds since 1970, then use XPATH to add the number of seconds you need.

Or just use Convert Time token in IDM 3.61 and higher (not in 3.6, it
has Convert time but not the offset feature) and specify an offset.
Convert from your format to the same format but add an offset of 30 days.

Recall that Convert Time is a verb token, so needs a noun to perform its
action upon, so nest a local variable, or op-attr token to provide the
input it needs.



Labels (1)
0 Likes
1 Reply
Knowledge Partner
Knowledge Partner

Re: set a value of date type

On 8/7/2012 5:16 PM, eden silva wrote:
>
> thanks ,
> and if I want to know how many days has the current month?


Haha! I THINK if you specify a offset in months and say 1 month, you
get the length of the current month, but I have never tested it.



0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.