Myron S. Posted November 8, 2006 Posted November 8, 2006 I'm trying to make a calculation field transpose a date into a text string with leading zeroes in front of single digit months and days. For example, I need the date 1/5/2006 to calculate to 010506 as text. The day(date) and month(date) functions seem to strip out any leading zeroes. Thanks in advance.
LaRetta Posted November 9, 2006 Posted November 9, 2006 You might try: Right ( "00" & Month ( theDate ) ; 2 ) & Right ( "00" & Day ( theDate ) ; 2 ) & Right ( Year ( theDate ) ; 2 )
Myron S. Posted November 9, 2006 Author Posted November 9, 2006 That worked like a charm. thank you so much.
Recommended Posts
This topic is 6591 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now