<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0202</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2004-09-15</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0000027093</issuerCik>
        <issuerName>DATARAM CORP</issuerName>
        <issuerTradingSymbol>DRAM-NASDQ</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001159990</rptOwnerCik>
            <rptOwnerName>MARCHER LARS</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>28 ARNOLD DRIVE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>PRINCETON JUNCTION</rptOwnerCity>
            <rptOwnerState>NJ</rptOwnerState>
            <rptOwnerZipCode>08550</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>Executive Vice President &amp; COO</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Options (9/15/2004)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>6.75</value>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2004-09-15</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>8200</value>
                </transactionShares>
                <transactionPricePerShare>
                    <footnoteId id="F1"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <value>2005-09-15</value>
            </exerciseDate>
            <expirationDate>
                <value>2009-09-15</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock, $1.00 Par Value</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>8200</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>8200</value>
                    <footnoteId id="F2"/>
                    <footnoteId id="F3"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">Options were granted to the reporting person in consideration of his service as an Executive Officer of the Company.  Options were granted at an exercise price equal to the fair market value of the Common Stock on the date of grant.</footnote>
        <footnote id="F2">In addition, the Reporting Person holds options to purchase 100,000 shares at $9.875 a share of which 60,000 shares are presently exercisable and 20,000 shares each become exercisable on 3/23/2005 and 3/23/2006.  This option expires on 2/23/2011.  The Reporting Person holds options to purchase 8,200 shares at $7.98 a share of which 4,100 shares are presently exercisable and 2,050 shares each become exercisable on 11/26/2004 and 11/26/2005.  This option expires on 11/26/2011.</footnote>
        <footnote id="F3">The Reporting Person holds options to purchase 8,200 shares at $2.99, of which 2,050 shares are exercisable, 2,050 shares each become exercisable on 9/18/2004, 9/18/2005 and 9/18/2006.  These options expire on 9/18/2012.  The Reporting Person holds options to purchase 8,200 shares at $4.09 a share, of which 2,050 shares each become exercisable on 9/18/2004, 9/18/2005, 9/18/2006 and 9/18/2007.  These options expire on 9/18/2013.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>LARS MARCHER</signatureName>
        <signatureDate>2004-09-16</signatureDate>
    </ownerSignature>
</ownershipDocument>

