Page 2 of 2

Posted: Wed Mar 04, 2009 9:33 am
by bart12872
Sainath.Srinivasan wrote:The format must not be dependant on the version.
well, as it is write in the Help "Date, Time, and Timestamp functions that take a format string (e.g. timetostring(time, stringformat)) need specific formats."
It seems that the day and the month must be on 2 digits.

Posted: Wed Mar 04, 2009 9:59 am
by betterthanever
bart12872,
we can handle single digit month and date as mentioned in the expessions ...

i agree that the expression you mentioned also works..

Posted: Wed Mar 04, 2009 11:08 am
by efxuser
StringToTimestamp(Right('0':Field(DSLink8.Eff_date,'/',1),2):'/':Right('0':Field(DSLink8.Eff_date,'/',2),2):'/':Field(DSLink8.Eff_date,'/',3) :' 00:00:00',"%mm/%dd/%yyyy %hh:%nn:%ss")


this expression works but just waiting for someone to jump in with a elegant solution.Thanks for all the poster's time and help.

Posted: Wed Mar 04, 2009 11:33 am
by bart12872

Posted: Wed Mar 04, 2009 1:29 pm
by efxuser
thanks very much

Re: StringToTimestamp err

Posted: Fri Mar 06, 2009 1:37 am
by newmoonera
Wats the datatype of the field you are using...?

Re: StringToTimestamp err

Posted: Fri Mar 06, 2009 3:46 am
by dr.murthy
Hi,

use a isvaild function to get the date values which is having proper format means dd-mm-yyyy.you can deal with rest of the dates by prefix 0.

Re: StringToTimestamp err

Posted: Fri Mar 06, 2009 3:48 am
by dr.murthy
Hi,

use a isvaild function to get the date values which is having proper format means dd-mm-yyyy.you can deal with rest of the dates by prefix 0.

Posted: Fri Mar 06, 2009 1:21 pm
by ray.wurlod
Attention to detail!

There is no function called "isvaild".

Further, your assertion that the "proper" format of dates is dd-mm-yyyy is only correct if this is the default date format string.