home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
BASIC
/
PBC22
/
SOURCES
/
EURODATE.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-01-01
|
872b
|
21 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1993 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE SUB FormatDate (DateSt$, FormatSt$, Result$, ErrCode%)
SUB EuropeDate (DateSt$, FormatSt$, Result$, ErrCode%)
IF LEN(FormatSt$) = 8 THEN
Delim$ = MID$(FormatSt$, 3, 1)
Form$ = "DD" + Delim$ + "MM" + Delim$ + "YY"
ELSEIF LEN(FormatSt$) = 10 THEN
Delim$ = MID$(FormatSt$, 3, 1)
Form$ = "DD" + Delim$ + "MM" + Delim$ + "YYYY"
ELSE
Form$ = "DD.MM.YYYY"
END IF
FormatDate DateSt$, Form$, Result$, ErrCode%
END SUB