home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
QBAS
/
PBC22B.ZIP
/
PBC$BAS.ZIP
/
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