﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Integer Veriyi Tarihe Dönüştüren Fonksiyon &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/integer-veriyi-tarihe-donusturen-fonksiyon/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Sun, 02 Oct 2022 09:48:02 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>SQL Server&#8217;da Integer Veriyi Tarihe Dönüştüren Fonksiyon</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-integer-veriyi-tarihe-donusturen-fonksiyon</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Sun, 02 Oct 2022 09:48:02 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Integer Veriyi Tarihe Dönüştüren Fonksiyon]]></category>
		<category><![CDATA[SQL Server'da Integer]]></category>
		<category><![CDATA[SQL Server'da Integer Veri]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=14486</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server’da Integer veriyi tarihe dönüştüren fonksiyon ile ilgili bilgi vermeye çalışacağım. SQL Server’da bazı durumlarda Integer veriyi tarihe dönüştürmek isteyebilirsiniz....]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server’da Integer veriyi tarihe dönüştüren fonksiyon ile ilgili bilgi vermeye çalışacağım.</p>
<p>SQL Server’da bazı durumlarda Integer veriyi tarihe dönüştürmek isteyebilirsiniz.</p>
<p>Aşağıdaki fonksiyonu kullanarak siz de bu işlemi rahatlıkla yapabilirsiniz.</p>
<pre class="line-numbers"><code class="language-sql">CREATE FUNCTION INTtoDATE
(
    @LDATE INT
)
RETURNS DATETIME
AS
BEGIN

    DECLARE @DATE DATETIME,
            @DD INT,
            @MM INT,
            @YYYY INT,
            @DATESTR VARCHAR(12);

    SELECT @DD = ((@LDATE % 65536) / 256);

    SELECT @MM = (@LDATE % 65536) % 256;

    SELECT @YYYY = (@LDATE / 65536);

    SELECT @DATESTR = CAST(@DD AS VARCHAR(2)) + '-' + CAST(@MM AS VARCHAR(2)) + '-' + CAST(@YYYY AS VARCHAR(4));

    SELECT @DATE = CONVERT(DATETIME, @DATESTR, 102);

    RETURN (@DATE);

END;
GO

--Kullanımı

SELECT INTtoDATE(190054657);</code></pre>
<p>Yukarıdaki fonksiyonu çalıştırınca aşağıdakine benzer bir sonuç göreceksiniz.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-14503 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2022/09/sql-serverda-integer-veriyi-tarihe-donusturen-fonksiyon-1.jpg" alt="SQL Server'da Integer Veriyi Tarihe Dönüştüren Fonksiyon" width="700" height="452" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2022/09/sql-serverda-integer-veriyi-tarihe-donusturen-fonksiyon-1.jpg 700w, https://sqlserveregitimleri.com/wp-content/uploads/2022/09/sql-serverda-integer-veriyi-tarihe-donusturen-fonksiyon-1-315x203.jpg 315w, https://sqlserveregitimleri.com/wp-content/uploads/2022/09/sql-serverda-integer-veriyi-tarihe-donusturen-fonksiyon-1-465x300.jpg 465w, https://sqlserveregitimleri.com/wp-content/uploads/2022/09/sql-serverda-integer-veriyi-tarihe-donusturen-fonksiyon-1-209x135.jpg 209w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere Integer veri tarihe dönüştürülmüş oldu.</p>
<p>Herkese çalışma hayatında ve yaşamında başarılar kolaylıklar.</p>
<div class='epvc-post-count'><span class='epvc-eye'></span>  <span class="epvc-count"> 224</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
