Wednesday, February 20, 2019

Solved - CrystalReports: convert Julian date to MM/dd/yyyy format

Say you have a date in Julian format, 2012003, in your database, and you want to display it in a MM/dd/yyyy format in your crystal report.

You pass the Julian date as a startDate parameter to your crystal report.

This is how you convert it into the MM/dd/yyyy format.

          if (length(totext({?startDate})) > 3)
                 DateSerial(truncate({?startDate} / 1000), 1, 1) + ({?startDate} Mod 1000) - 1

 -----------------------------------------------------------------------------------------------------------------
Watch the blessing and loving online channel: SupremeMasterTV live




If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book for free here.


No comments:

Post a Comment