Date Format Code

R

rml

How can I make the following code convert the date portion to dd/mm/yy
instead of the standard mm/dd/yy?

= Trim([CreateDate] & " / " & [Tech])

Thanks.
 
M

Marshall Barton

rml said:
How can I make the following code convert the date portion to dd/mm/yy
instead of the standard mm/dd/yy?

= Trim([CreateDate] & " / " & [Tech])


This is different from your other formatting question.
Here, you need to use the Format function:

=Trim(Format(CreateDate, "ss/mm/yy") & " / " & [Tech])
 
D

Douglas J. Steele

Marshall Barton said:
rml said:
How can I make the following code convert the date portion to dd/mm/yy
instead of the standard mm/dd/yy?

= Trim([CreateDate] & " / " & [Tech])


This is different from your other formatting question.
Here, you need to use the Format function:

=Trim(Format(CreateDate, "ss/mm/yy") & " / " & [Tech])

Slight typo. It should be

=Trim(Format(CreateDate, "dd/mm/yy") & " / " & [Tech])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top