CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Date Codecharge 2.0

Print topic Send  topic

Author Message
Christoph
Posted: 09/15/2003, 6:59 AM

Can someone show me how to display the Date (e.g. 12/02/03) in an european format (02/12/03) ????

Thank you very much !
Si Cranmer
Posted: 09/15/2003, 7:15 AM

so thats codecharge NOT codechange studio?

if so then Im affraid you have to do it all manualy. In BeforeShow for each of the date fields. Then dont forget to modify back BeforeInsert/BeforeUpdate into the DB format.

Si.
musica
Posted: 09/15/2003, 10:01 PM

If you're using vbscript (ASP)/ACCESS add these to your common and then use in events as required thus:

fldDate = SaveDate(fldDate)

fldDOB = ShowDate(fldDOB)

etc.

' ______________________________________________________
Function ShowDate(Field)
If IsDate(Field) Then
ShowDate= DatePart("d", Field) & "/" & DatePart("m", Field) & "/" & DatePart("yyyy", Field)
End If
end Function
'_______________________________________________________
Function SaveDate(Field)
If IsDate(Field) Then
SaveDate= DatePart("m", Field) & "/" & DatePart("d", Field) & "/" & DatePart("yyyy", Field)
End If
end Function
'_______________________________________________________

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.