US and Worldwide: +1 (866) 660-7555
+ Reply to Thread
Results 1 to 2 of 2

Thread: About ate issue

  1. #1
    Join Date
    Dec 2006
    Posts
    100

    Default About ate issue

    Dear all:

    how to return the end date of the month of the given arbitrary date in my transformation??

    anyone can help for that?
    thx for helping me!

    Regards,
    Jeff

  2. #2

    Default Date issue

    Hi,
    I think something like this should work in a JavaScript step:
    Code:
    var firstOfThisMonth = str2date("01." + num2str(month(givenDate),"00") + "." + num2str(year(givenDate),"0000") ,"dd.MM.yyyy")
    var firstOfNextMonth = dateAdd(firstOfThisMonth, "m", 1);
    var lastOfThisMonth  = dateAdd(firstOfNextMonth, "d", -1);

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts