General information
Category:
Coding, syntax & commands
>>Hi! Jim!
>>
>>you can try the following:
>>
>>ldDate = {31.03.97}
>>lcSeparator = substr(dtoc(ldDATE),3,1)
>>ldBegDate =CTOD([01]+lcSeparator+substr(dtoc(ldDate),4))
>>ldEndDate = gomonth(ldBegDate,1)-1
>>
>>May be it be it not so short but it always return correct result...
>
>It will work as long as the year is not the first part.
It will work as long as the day is the first part. :)
Vlad
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only