Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
zagzebski
Creator
Creator

Change a date to 1st day of year

This seems like it should be simple but couldn't find the exact documentation for it.

I need to change a date so it becomes January 1st of the same year:  12/1/2013 becomes 01/01/2013, 05/05/2012 becomes 01/01/2012, 10/15/2011 becomes 01/01/2011 etc.


1 Solution

Accepted Solutions
jonasheisterkam
Partner - Creator III
Partner - Creator III

=date(floor(yearstart(DATE)))

yearstart= first ms of the year

floor=will round it

date=makes the integer to date

or =date('1/1/'&year(Date))

View solution in original post

3 Replies
jonasheisterkam
Partner - Creator III
Partner - Creator III

=date(floor(yearstart(DATE)))

yearstart= first ms of the year

floor=will round it

date=makes the integer to date

or =date('1/1/'&year(Date))

Clever_Anjos
Employee
Employee

Yearstart function

zagzebski
Creator
Creator
Author


Thanks - don't know how I missed that!