79394105

Date: 2025-01-28 14:13:06
Score: 1.5
Natty:
Report link

I know this is an old question, but I'd suggest using SQL Servers "Format" statement, like this:

select Format(getDate(), 'yyyy_MM')

It's quick, simple and to-the-point

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Futski