New date format: YYYY-MM-DD

Jim Ault JimAultWins at yahoo.com
Fri Oct 14 19:02:30 EDT 2005


Whoops, forgot to use the dash separator
set the itemdel to "/"
put format("%s-%02s-%02s",(³20² & word 1 of item 3 of line 1), item 1 of
line 1, item 2 of line 1)
set the itemdel to tab

....might work in the new millenium

Jim Ault
Las Vegas



On 10/14/05 3:05 PM, "Sivakatirswami" <katir at hindu.org> wrote:

> Anyone want to vote for a new standard date format?
> 
> YYYY-MM-DD
> 
> In fact I believe the above is some standard now...
> 
>   I find myself more and more encountering this as input from systems
> both of my own creation and from others...
> 
> Now you have to do a little dance to get that into a convertable
> string...or am I missing something
> 
> input: e.g.
> 
> 06/04/13 tab someData tab SomeMoreData etc
> 
> set the itemdel to tab
> put item 1 of line 1 into tDate
> set the itemdel to "/"
> put "/" &  item 1 of tDate after tDate
> delete item 1 of tDate
> set the itemdel to tab
> 
> Sivakatirswami
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list