trim

iuphim

Registered User.
Local time
Yesterday, 22:33
Joined
Oct 30, 2008
Messages
43
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,

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")
 
try format([yourdatefield], "d")
 
Try using the DatePart function.

the code below will return the day of the current date.

Dim varDay
varDay = DatePart("d", Date)

or to use your field:

Dim varDay
varDay = DatePart("d", YourDateFieldHere)
 
Thank you all for the prompt reply. This is a great help!!
 

Users who are viewing this thread

Back
Top Bottom