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

Similar Threads

Date Format 1
Report Date Formatting 4
Display of a text field yy/mm/dd as mm/dd/yy in a report header 4
Date format 3
Number of Days? 4
Date format 1
How to enter a date in DD-MM-YYYY format 2
date filter 1

Top