Created
April 30, 2018 18:05
-
-
Save aevdokimenko/826a1b34927fa4369260394dfdb29495 to your computer and use it in GitHub Desktop.
T-SQL function to return date in Salesforce short date format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ============================================= | |
-- Author: Alex Evdokimenko | |
-- Create date: 2018-04-30 | |
-- Requested by: DBAmp cookbook users | |
-- Description: Helper function to return date in Salesforce short date format | |
-- ============================================= | |
Create FUNCTION [dbo].[fn_GetSFShortDate] (@d datetime ) | |
RETURNS NVARCHAR(10) | |
AS | |
BEGIN | |
RETURN cast(cast(@d as date) as nvarchar(10)); | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment