- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
SET @DD = DATEPART(dd, GETDATE())
SET @MM = DATEPART(mm, GETDATE())
SET @YYYY = DATEPART(yyyy, GETDATE())
IF LEN(@DD) = '1'
BEGIN
SET @DD = '0' + @DD
END
IF LEN(@MM) = '1'
BEGIN
SET @MM = '0' + @MM
END
SET @DT_D = @DD + '.' + @MM + '.' + @YYYY