[#BloombergLP-balber-BerUtil_DateImpUtil-dateToDaysSinceEpoch] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_DateImpUtil.adoc[BerUtil_DateImpUtil]::dateToDaysSinceEpoch :relfileprefix: ../../../ :mrdocs: Convert a date to days relative to the compact‐binary date epoch. == Synopsis Declared in `<balber_berutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void dateToDaysSinceEpoch( xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64]* daysSinceEpoch, xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& date); ---- == Description Load to the specified `daysSinceEpoch` the number of days between the compact‐binary date epoch and the specified `date`. The compact‐binary date epoch is the date defined by the `k_COMPACT_BINARY_DATE_EPOCH` serial date. Note that this quantity may be negative if the specified `date` occurs before the compact‐binary date epoch. == Parameters [cols="1,4"] |=== | Name| Description | *daysSinceEpoch* | destination for the day count relative to the epoch | *date* | date to convert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#