Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #5800

Re: Dates as numbers in BASIC

From Kevin Wells <kev@kevsoft.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Dates as numbers in BASIC
Date 2019-06-29 12:23 +0100
Organization Aioe.org NNTP Server
Message-ID <df5bb2cb57.Kevin@talktalk.net> (permalink)
References <bbb9c2c957.Kevin@talktalk.net> <0571c7c957.Paul@oatespaul.btinternet.com> <e6719fd2-013c-4f2a-8507-8453ca2f3fb1@googlegroups.com>

Show all headers | 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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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