Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export Date/Time data type question?

Status
Not open for further replies.

acin0026

Technical User
Feb 5, 2001
12
TH
I have two fields (MyDate and MyTime). Both are Date/Time data type. I need to export to text file. After I export, It have default value in the field MyDate and MyTime

Example
MyDate, MyTime
6/20/01,10:28

After I export, It shows
6/20/01 0:00:00, 12/30/99 10:28:00

Is there any way to export just MyDate and MyTime but not show default time in MyDate and default date in MyTime.

thanks.
 
Hi

Try using
format(MyDate,"YYYY/MM/DD") for the date
and
format(MyTime,"HH:NN:SS") for the time

*
***
*****
*******
Ziggurat

 
...or

format(MyDate,"YYYY/MM/DD HH:MM:SS")' for the date

Aivars
 
I'm sorry, I was unobservant. I ditn't right.
Aivars
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top