This is my technical area for troubleshooting and learning new programming skills and much more. Here, you will find answers on a wide range of technologies such as AI, Machine Learning, OpenAI, Databricks, ASP.NET, C#, Python, Microsoft Access, MySQL, Amazon Web Services, SQL Server, PL/SQL, JD Edwards, SAS, Salesforce, APIs, MVC, and many others. Please feel free to visit and join the discussion!
Monday, February 14, 2022
2 Digit Year in SQL Server
FORMAT(DATEADD(year, 1, getdate()), 'yy')
-- In Select statement
Select FORMAT(DATEADD(year, 0, getdate()), 'yy') from PRODDTA.F0010 where ccco='00000'
No comments:
Post a Comment