Hi Ingo,

This is a method we use for conversion.

private static string _getDateFromCMSDate( string cmsDate )
{
        if ( cmsDate == null || cmsDate == string.Empty ) return "";

        string[] parts = cmsDate.Split( '.' );

        //date part
        DateTime val = new DateTime( 1899, 12, 30, 0, 0, 0 ).AddDays
( int.Parse( parts[0] ) );

        //date and time
        if ( parts.Length == 2 )
        {
                val = val.AddSeconds( float.Parse( "." + parts[1] ) * ( 60 * 60 
*
24 ) ); //num of seconds
                return val.ToString( "dd/MM/yyyy HH:mm:ss" );
        }

        //date-only
        return val.ToString( "dd/MM/yyyy" );
}

HTH.

Regards,
Richard Hauer
====================
5 Limes Pty Limited
www.5Limes.com.au


On Feb 6, 8:42 pm, "Ingo Hillebrand" <[email protected]> wrote:
> Hi,
>
> i am programming a RQL application in .NET ( C# ).
> RedDot uses not a common, but a specific dateformat.
>
> Does anyone has a working .NET and not a classic ASP Interface?
>
> Thanks in Advance,
> Ingo Hillebrand
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to