Date Format Code

  • Thread starter Thread starter rml
  • Start date Start date
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.
 
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])
 
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])
 
Back
Top