<?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>0001006331</rptOwnerCik>
            <rptOwnerName>HOLZMAN RICHARD</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>94 EVELYN ROAD</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>WABAN</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02468</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
        </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>8000</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>8000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>8000</value>
                    <footnoteId id="F2"/>
                </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 a Director 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 8,000 shares at $7.98 a share which are presently exercisable and expire on 11/26/2011.  The Reporting Person holds options to purchase 8,000 shares at $2.99 a share which are presently exercisable and expire on 9/18/2012.  The Reporting Person holds options to purchase 8,000 at $4.09 a share which become exercisable on 9/18/2004 and which expire on 9/18/2013.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>RICHARD HOLZMAN</signatureName>
        <signatureDate>2004-09-16</signatureDate>
    </ownerSignature>
</ownershipDocument>

