Page 1 of 1 1
Topic Options
#42758 - 2003-07-12 12:45 AM Date format
sandrobpat Offline
Fresh Scripter

Registered: 2002-07-18
Posts: 27
Loc: A PARIS...
Hi !

How obtain a date in format mm/dd/yy with kix ?

Thanks

Top
#42759 - 2003-07-12 12:54 AM Re: Date format
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, you can use @date macro and re-order it's fields.
well, you also can simply do:
code:
"date in weird order: @monthno/@mdayno/@year"

_________________________
!

download KiXnet

Top
#42760 - 2003-07-12 12:55 AM Re: Date format
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
weekend coming...
"well,well,well" [Eek!]
_________________________
!

download KiXnet

Top
#42761 - 2003-07-12 12:59 AM Re: Date format
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Piece O' Cake:


break on

$d = split(@date,'/')[1] + '/' + split(@date,'/')[2] + '/' + right(split(@date,'/')[0],2)

? $d

get $_


Well, this long line is wanted before anyone calls the longline Police dept. [Wink]

Happy handicap improving t'all you Golf Pro's
_________________________



Top
#42762 - 2003-07-11 01:01 PM Re: Date format
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
j?
didn't I just provide shorter code?
not just, but looong time ago already [Big Grin]
_________________________
!

download KiXnet

Top
#42763 - 2003-07-11 01:02 PM Re: Date format
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
shhhht !!! [Mad]

That wasn't a Poo word variation but the sound you'd hear when I want you to shut up [Wink]
Maybe the one's with more handicap than you want to improve [Razz]

[ 11. July 2003, 13:07: Message edited by: Jochen ]
_________________________



Top
#42764 - 2003-07-11 01:58 PM Re: Date format
sandrobpat Offline
Fresh Scripter

Registered: 2002-07-18
Posts: 27
Loc: A PARIS...
It's ok for me; but Lonkero, note that @year = yyyy format and no yy format as i want [Wink]

So, you are the best kixtarter

Top
#42765 - 2003-07-11 02:09 PM Re: Date format
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sand, ok.
fixed:
code:
$date="@monthno/@mdayno/"+right(@year,2)
;or even:
$="@monthno/@mdayno/"+right(@year,2)

what is best?
I know I am kixFarter but to say someone is best...
anyway, think I'm the loudest [Wink]
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 223 anonymous users online.
Newest Members
SERoyalty, mytar, Gabriel, Alex_Evos, Dansen
17869 Registered Users

Generated in 0.059 seconds in which 0.024 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org