Welcome! Log In Create A New Profile

Advanced

date functions overlooked

Posted by King 
King
date functions overlooked
January 26, 2009 03:44PM
Hi All,

I coudn't find out any windev date function that could convert as below:

"Jan. 26,2009" > "20090126"

or

given "20090126" returns "Monday"

I have to write a function instead.

Any help?

thx in advance!

King
christoph
Re: date functions overlooked
January 26, 2009 04:09PM
Hi King,

integertoday(datetointeger("YYYYMMDD")) give you "Monday??"

stringtodate can help for your first problem

Christoph
King
Re: date functions overlooked
January 26, 2009 07:52PM
Hi Chris,

Thx but for the 1st problem, I have the following result

// returns 2008Ja10
sDate is String = "Jan 10,2008"
info(stringToDate ( sDate, "MMM DD,YYYY"))

// but dateToString can return month in alpha

Any clue!

Thx again

King
christoph
Re: date functions overlooked
January 27, 2009 08:11AM
Hi King,

i think you must write your own function for this.

Christoph
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: