<?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>0001116697</rptOwnerCik>
            <rptOwnerName>BRESKY MARK R</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>11 WEST CIRCUIT DRIVE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>SUCCASUNNA</rptOwnerCity>
            <rptOwnerState>NJ</rptOwnerState>
            <rptOwnerZipCode>08502</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>Vice President, Info. Tech.</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">The Reporting Person holds options to purchase 3,000 shares at $1.708333 a share which are presently exercisable and expire on 6/16/2005.  The Reporting Persons holds options to purchase 12,000 shares at $2.3125 a share which are presently exercisable and expire on 9/10/2006.  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.</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>MARK R. BRESKY</signatureName>
        <signatureDate>2004-09-16</signatureDate>
    </ownerSignature>
</ownershipDocument>

