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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formating Date

Status
Not open for further replies.

Frank336

MIS
Aug 6, 2002
41
CA
(VB6, CR8.5(RDC), Access 2000)

Hi,

ive got a problem with date formating. First of all, I must say that Im using french regional parameters and crystal syntax.

When i use the following formula in a UnboundString :

cstr(DatePart("YYYY", currentDate),0)

the year is print : 2 002 and not 2002

So Ive try using :

replace(cstr(DatePart("YYYY", currentDate),0), " ", "")

but the result is the same... 2 002

With US regional parameter the "Replace" remove the "," in "2,002"

What is wrong with my formula ? Maybe I could try Basic Syntax but im not sure how its working in Formulas...


Thanks,
Frank

 
totext(datepart("yyyy",Currentdate),0,"") works for me. Software Training and Support for Macola, Crystal Reports and Goldmine
251-621-8972
dgilsdorf@mchsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top