Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save countnazgul/95184a2c70029d7eb539 to your computer and use it in GitHub Desktop.
Save countnazgul/95184a2c70029d7eb539 to your computer and use it in GitHub Desktop.
[Julian Date to normal Date] Convert from Julian Date to normal Date (Gregorian) #qlik #qlikview #script
// to convert from Julian Date to normal Date (Gregorian)
// subtract the offset 2415019 (equivalent to 30.12.1899, which is day 0 in QlikView):
Date(JulianDateField - 2415019)
//You probaly have to adjust the timezone since Julian Date is in UTC.
// to convert from normal Date (Gregorian) to Julian Date
// add the offset 2415019 (equivalent to 30.12.1899, which is day 0 in QlikView):
Num(NormalDateField + 2415019)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment