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
'_______________________________________________________
|
|
|
|