Results 1 to 10 of 10

Thread: HELP: Solution for Posted Date the 15th of the month OR 1st of the following month

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2007
    Posts
    71

    HELP: Solution for Posted Date the 15th of the month OR 1st of the following month

    Hi guys

    could you help what would be the best way to implement this logic

    Example
    If ToDate is May 14 2008 then posted date is 20080515
    and if ToDate is May 31 2008 then posted date is 20080601

    Basicly I would like to create a logic that would work like this
    ToDate = 20000114 THEN PostedDate = 20000115 <-- The 15th of the same month

    ToDate = 20000131 THEN PostedDate = 20000201 <-- The First of the following month

    ToDate = 20001231 THEN PostedDate = 20010101 <-- The year Change (The first of the following month and year)



    Thank you
    Last edited by ndondo; May 1st, 2008 at 04:59 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width