I iuphim Registered User. Local time Yesterday, 22:33 Joined Oct 30, 2008 Messages 43 May 5, 2010 #1 hi i would like to trim for just the day in a date, please help write this. if 5/25/2010 - i want the "25" part only. Thanks,
hi i would like to trim for just the day in a date, please help write this. if 5/25/2010 - i want the "25" part only. Thanks,
jdraw Super Moderator Staff member Local time Yesterday, 22:33 Joined Jan 23, 2006 Messages 15,565 May 5, 2010 #2 iuphim said: hi i would like to trim for just the day in a date, please help write this. if 5/25/2010 - i want the "25" part only. Thanks, Click to expand... You could just use a format statement on the date involved and select only the "Day" portion of date eg. format (#5/25/2010#,"dd")
iuphim said: hi i would like to trim for just the day in a date, please help write this. if 5/25/2010 - i want the "25" part only. Thanks, Click to expand... You could just use a format statement on the date involved and select only the "Day" portion of date eg. format (#5/25/2010#,"dd")
rainman89 I cant find the any key.. Local time Yesterday, 22:33 Joined Feb 12, 2007 Messages 3,015 May 5, 2010 #3 try format([yourdatefield], "d")
M Mr. B "Doctor Access" Local time Yesterday, 21:33 Joined May 20, 2009 Messages 1,932 May 5, 2010 #4 Try using the DatePart function. the code below will return the day of the current date. Dim varDay varDay = DatePart("d", Date) Click to expand... or to use your field: Dim varDay varDay = DatePart("d", YourDateFieldHere) Click to expand...
Try using the DatePart function. the code below will return the day of the current date. Dim varDay varDay = DatePart("d", Date) Click to expand... or to use your field: Dim varDay varDay = DatePart("d", YourDateFieldHere) Click to expand...
I iuphim Registered User. Local time Yesterday, 22:33 Joined Oct 30, 2008 Messages 43 May 5, 2010 #5 Thank you all for the prompt reply. This is a great help!!