How can I convert the date Value in an easy way
Hi,I read Attributevalues from my own category. One Attribute field is a date field. The return value I get is long.This is the Manual entry for LL_ListGetDate.*******************************************************LL_ListGetDateReturns the Date value object stored at the specified index of a List value objectC Function SourceLLSTATUS LLEXPORT LL_ListGetDate( LLVALUE list, LLLONG index, LPLLDATE value ){ LLLONG type; LLSTATUS retStatus; LL_ValueGetType( list, &type ); if ( type != LL_LIST ) { retStatus = LL_E_TYPEERROR; } else { retStatus = LL_ValueGetIndexDate( list, index, value ); } return( retStatus );}Visual Basic Calling SyntaxLong LL_ListGetDate( ByVal list as Long, ByVal index as Long, ByRef value as Long )This function cannot be used in Visual Basic. Use LL_ListGetString instead.*******************************************************This is my example:******************************************************* status = LL_GetObjectAttributesEx(session, objID, catID, catVersion)' It works fine lStatus = LL_AttrGetValues(session, catVersion, "ORT", LL_ATTR_DATAVALUES, 0, attrValues)Call LL_ListGetString(attrValues, 0, buf, bufLen, outSize)' What can I do? lStatus = LL_AttrGetValues(session, catVersion, "MyDate", LL_ATTR_DATAVALUES, 0, attrValues) lStatus = LL_ListGetDate(attrValues, 0, lBuf)lStatus = LL_ValueGetIndexDate(attrValues, 0, lBuf)lStatus = LL_ListGetString(attrValues, 0, buf, bufLen, outSize)*******************************************************The lBuf parameter has a value as long.My Question:Who knows how I can get in an easy way a readable Date-String-Format and BACK (e.g. 01.01.2002).Thanks in advanceAndreas Boldt