Problem Exporting time

G

Guest

I am exporting a "Short Time" (15:00) to a .CSV file. It comes out
"12/30/1899 15:00". I know why this is happening. But, How can I get it to
export as "15:00"?
 
G

Guest

Hi Jeff,

Explicitly format it using the format function, like this:

format(YOURFIELD, "HH:nn")

Hope that helps.

Damian.
 
G

Guest

couldn't you use the format function to extract on the time...

format(datetimevariablename,"hh:mm")

Daniel
 
J

James A. Fortune

Jeff said:
I am exporting a "Short Time" (15:00) to a .CSV file. It comes out
"12/30/1899 15:00". I know why this is happening. But, How can I get it to
export as "15:00"?

Greetings Jeff Mc!

Use a query based on the table. For example,

SELECT TID, Format(tblTransactions.TransactionDate, 'Short Time') AS
TransactionDate, Amount FROM tblTransactions;

Save the query, then export the query rather than the table.

James A. Fortune
(e-mail address removed)
 

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