Skip to content
Advertisement

How to get date format as “yyyy mm/dd”?

I am trying to output a time stamp field from view in this format yyyy mm/dd so I tried like this:

however there is no padding zeros so how I add them ?

using Firebird 3.0

Advertisement

Answer

You could use the lpad function to pad with 0, ie

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement