Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #5800
| Path | csiph.com!aioe.org!.POSTED.c1RNviXOQl0V8eQeXBUsxA.user.gioia.aioe.org!not-for-mail |
|---|---|
| From | Kevin Wells <kev@kevsoft.co.uk> |
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Dates as numbers in BASIC |
| Date | Sat, 29 Jun 2019 12:23:05 +0100 |
| Organization | Aioe.org NNTP Server |
| Lines | 29 |
| Message-ID | <df5bb2cb57.Kevin@talktalk.net> (permalink) |
| References | <bbb9c2c957.Kevin@talktalk.net> <0571c7c957.Paul@oatespaul.btinternet.com> <e6719fd2-013c-4f2a-8507-8453ca2f3fb1@googlegroups.com> |
| NNTP-Posting-Host | c1RNviXOQl0V8eQeXBUsxA.user.gioia.aioe.org |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Messenger-Pro/8.01 (MsgServe/8.01) (RISC-OS/5.25) NewsHound/v1.52-32 |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| Xref | csiph.com comp.sys.acorn.programmer:5800 |
Show key headers only | View raw
In message <e6719fd2-013c-4f2a-8507-8453ca2f3fb1@googlegroups.com>
news@sprow.co.uk wrote:
>> How can you get the month as a number instead of the 3 letter shorterned
>> name e.g?
>>
>> 06 instread of Jun
>
> DIM block 7
> ?block=1
> SYS"OS_Word",14,block
> PRINT block?1
>
>If you want it with leading 0 too change the last line to
>
> PRINT RIGHT$("0"+STR$(block?1),2)
>
>Sprow.
Thanks that is what is needed. Nice and simple as well.
Thsmkd to all those who gave other answers as well.
--
Kev Wells
http://kevsoft.co.uk/
carpe cervisium
But it's " Saviour of 'is country " when the guns begin to shoot;
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Dates as numbers in BASIC Kevin Wells <kev@kevsoft.co.uk> - 2019-06-25 18:09 +0100
Re: Dates as numbers in BASIC "John Williams (News)" <UCEbin@tiscali.co.uk> - 2019-06-25 18:45 +0100
Re: Dates as numbers in BASIC Paul Oates <oatespaul@btinternet.com> - 2019-06-25 19:00 +0100
Re: Dates as numbers in BASIC news@sprow.co.uk - 2019-06-27 05:47 -0700
Re: Dates as numbers in BASIC Kevin Wells <kev@kevsoft.co.uk> - 2019-06-29 12:23 +0100
Re: Dates as numbers in BASIC jgh@mdfs.net - 2019-07-03 11:47 -0700
Re: Dates as numbers in BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2019-06-25 19:25 +0100
Re: Dates as numbers in BASIC Andrew Conroy <a.m.conroy@owlart.co.uk> - 2019-06-26 22:19 +0100
Re: Dates as numbers in BASIC Andrew Conroy <a.m.conroy@owlart.co.uk> - 2019-06-26 23:05 +0100
Re: Dates as numbers in BASIC Alan Adams <alan@adamshome.org.uk> - 2019-06-27 12:08 +0100
Re: Dates as numbers in BASIC Alan Adams <alan@adamshome.org.uk> - 2019-06-27 13:32 +0100
csiph-web