on Nov 12th, 2012, 3:32pm, Danny wrote:I would like to be able to take a part of the time$ information such as the day e.g. "Monday" and to put that into another variable. |
|
If you are looking to get only the abbreviated day name (Mon, Tue, Wed etc.) then that's trivial, you just take the first three characters of TIME$ (or four if you want the dot as well):
Code: weekday$ = LEFT$(TIME$,3)
PRINT weekday$
But if you want the full name of the day, e.g. "Monday", the easiest way is probably to use the DATELIB library as follows:
Code: INSTALL @lib$+"DATELIB"
mjd% = FN_today
weekday$ = FN_date$(mjd%, "dddd")
PRINT weekday$
Richard.