Skip to main content
Commonmark migration
Source Link

#T-SQL 37 22 bytes

T-SQL 37 22 bytes

Saved 15 bytes thanks to BradC's comment.

The usual hardcoded variable for lack of a stdin.

e.g.

DECLARE @ NVARCHAR(4) = '2016'

Then the solution is:

PRINT ISDATE(@+'0229')

#T-SQL 37 22 bytes

Saved 15 bytes thanks to BradC's comment.

The usual hardcoded variable for lack of a stdin.

e.g.

DECLARE @ NVARCHAR(4) = '2016'

Then the solution is:

PRINT ISDATE(@+'0229')

T-SQL 37 22 bytes

Saved 15 bytes thanks to BradC's comment.

The usual hardcoded variable for lack of a stdin.

e.g.

DECLARE @ NVARCHAR(4) = '2016'

Then the solution is:

PRINT ISDATE(@+'0229')
added 33 characters in body
Source Link
S.Karras
  • 261
  • 1
  • 4

#T-SQL 3737 22 bytes

Saved 15 bytes thanks to BradC's comment.

The usual hardcoded variable for lack of a stdin.

e.g.

DECLARE @ NVARCHAR(4) = '2016'

Then the solution is:

PRINT IIF(ISDATE(@+'0229')=1,'y','n')

#T-SQL 37 bytes

The usual hardcoded variable for lack of a stdin.

e.g.

DECLARE @ NVARCHAR(4) = '2016'

Then the solution is:

PRINT IIF(ISDATE(@+'0229')=1,'y','n')

#T-SQL 37 22 bytes

Saved 15 bytes thanks to BradC's comment.

The usual hardcoded variable for lack of a stdin.

e.g.

DECLARE @ NVARCHAR(4) = '2016'

Then the solution is:

PRINT ISDATE(@+'0229')
deleted 93 characters in body
Source Link
S.Karras
  • 261
  • 1
  • 4

#T-SQL 37 3537 bytes

The usual hardcoded variable for lack of a stdin.

e.g.

DECLARE @ NVARCHAR(4) = '2016'

Then the solution is:

PRINT IIF(ISDATE(@+0229@+'0229')=1,'y','n')

Edit: Saved 2 bytes, we don't need the quotes('') in the concatenation.

#T-SQL 37 35 bytes

The usual hardcoded variable for lack of a stdin.

e.g.

DECLARE @ NVARCHAR(4) = '2016'

Then the solution is:

PRINT IIF(ISDATE(@+0229)=1,'y','n')

Edit: Saved 2 bytes, we don't need the quotes('') in the concatenation.

#T-SQL 37 bytes

The usual hardcoded variable for lack of a stdin.

e.g.

DECLARE @ NVARCHAR(4) = '2016'

Then the solution is:

PRINT IIF(ISDATE(@+'0229')=1,'y','n')
Post Undeleted by S.Karras
Post Deleted by S.Karras
added 82 characters in body
Source Link
S.Karras
  • 261
  • 1
  • 4
Loading
Source Link
S.Karras
  • 261
  • 1
  • 4
Loading