N nicolaasjan2005 Registered User. Local time Today, 06:45 Joined Dec 29, 2004 Messages 25 Sep 3, 2009 #1 Is there a way to extend any date to the first day of January in the next year? (example 13/Oct/08 to 1/Jan/09 or 3 Sep/09 to 1/Jan/10)
Is there a way to extend any date to the first day of January in the next year? (example 13/Oct/08 to 1/Jan/09 or 3 Sep/09 to 1/Jan/10)
pbaldy Wino Moderator Staff member Local time Today, 04:45 Joined Aug 30, 2003 Messages 36,157 Sep 3, 2009 #2 All you'd need to do is grab the year of the given date (Year function) and add 1 to it, and use that plus 1 and 1 in a DateSerial function.
All you'd need to do is grab the year of the given date (Year function) and add 1 to it, and use that plus 1 and 1 in a DateSerial function.
N nicolaasjan2005 Registered User. Local time Today, 06:45 Joined Dec 29, 2004 Messages 25 Sep 3, 2009 #3 Thanks, Paul. Sometimes all a person needs is that "nudge" in the right direction. It worked well!