Path: csiph.com!aioe.org!.POSTED.c1RNviXOQl0V8eQeXBUsxA.user.gioia.aioe.org!not-for-mail From: Kevin Wells 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: References: <0571c7c957.Paul@oatespaul.btinternet.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 In message 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;