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!

Convert a date time to number

Status
Not open for further replies.

rewob65

Technical User
Nov 13, 2004
110
GB
I have a dataset of :-

tblClockingRecords.dteDate

Thios returns the date and time. I want to change this to a number and expected "tonumber" to work but says that the remaining text does not seem to be part of the formula. Any ideas. I intend to concatenate this number when I can get it.

Thnaks
 
what number do you want to convert it too...

what would todays date, 11/03/09 be converted to?

_____________________________________
Crystal Reports XI Developer Version
Intersystems Cache 5.X ODBC connection

 



Hi,

Check out DateSerial and see what you get.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 


Rather would the INT() function do the conversion?

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
it all boils down to what number is being sought....
julian date?
etc.....

_____________________________________
Crystal Reports XI Developer Version
Intersystems Cache 5.X ODBC connection

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top