{"id":27717,"date":"2025-08-18T00:45:25","date_gmt":"2025-08-17T21:45:25","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/"},"modified":"2025-08-18T00:45:25","modified_gmt":"2025-08-17T21:45:25","slug":"powershellde-datetime-nesnesi-olusturma-orneklerle","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/","title":{"rendered":"PowerShell&#8217;de DateTime Nesnesi Olu\u015fturma (\u00d6rneklerle)"},"content":{"rendered":"<p># PowerShell&#8217;de DateTime Nesnesi Olu\u015fturma: Tam Bir K\u0131lavuz<\/p>\n<p>PowerShell&#8217;de tarih ve zaman i\u015flemleri yapmak i\u00e7in olmazsa olmaz olan <code class=\"language-\">DateTime<\/code> nesnelerini nas\u0131l olu\u015fturaca\u011f\u0131n\u0131z\u0131 ve kullanaca\u011f\u0131n\u0131z\u0131 ad\u0131m ad\u0131m \u00f6\u011frenece\u011finiz kapsaml\u0131 bir rehber sunuyoruz.  Bu makale, yeni ba\u015flayanlardan ileri d\u00fczey kullan\u0131c\u0131lara kadar herkes i\u00e7in faydal\u0131 bilgiler i\u00e7ermektedir.  Tarih ve saat verilerinin do\u011fru bir \u015fekilde i\u015flenmesi, otomasyon scriptlerinizin g\u00fcvenilirli\u011fi ve do\u011frulu\u011fu i\u00e7in kritik \u00f6nem ta\u015f\u0131r. Bu rehber, PowerShell&#8217;deki <code class=\"language-\">DateTime<\/code> nesnelerini ustala\u015fman\u0131za yard\u0131mc\u0131 olacak ve ger\u00e7ek d\u00fcnya senaryolar\u0131nda nas\u0131l kullanaca\u011f\u0131n\u0131z\u0131 g\u00f6sterecektir.<\/p>\n<p><strong>\u00d6\u011frenme Yol Haritas\u0131<\/strong><\/p>\n<p>Bu rehber, bilgi seviyenize g\u00f6re \u00fc\u00e7 a\u015famada ilerlemektedir:<\/p>\n<p><strong>Yeni Ba\u015flayan:<\/strong>  Temel <code class=\"language-\">DateTime<\/code> nesnesi olu\u015fturma y\u00f6ntemleri ve basit \u00f6rnekler.<\/p>\n<p><strong>Orta Seviye:<\/strong> Ger\u00e7ek d\u00fcnya senaryolar\u0131na y\u00f6nelik \u00f6rnekler, formatlama ve optimizasyon ipu\u00e7lar\u0131.<\/p>\n<p><strong>\u0130leri Seviye:<\/strong> Performans analizi, s\u0131n\u0131r durumlar\u0131 (edge cases) ve geli\u015fmi\u015f teknikler.<\/p>\n<p><strong>1. PowerShell&#8217;de Tarih ve Zaman \u0130\u015flemlerine Giri\u015f<\/strong><\/p>\n<p>PowerShell, tarih ve zaman verilerini i\u015flemek i\u00e7in g\u00fc\u00e7l\u00fc ara\u00e7lar sunar.  Bunlar\u0131n temeli <code class=\"language-\">System.DateTime<\/code> s\u0131n\u0131f\u0131d\u0131r.  Bu s\u0131n\u0131f, tarih ve zaman bilgilerini temsil eden bir nesne sa\u011flar.  Bu nesneleri kullanarak tarih ve zaman kar\u015f\u0131la\u015ft\u0131rmalar\u0131 yapabilir, aral\u0131klar belirleyebilir, tarih ve zaman formatlar\u0131n\u0131 de\u011fi\u015ftirebilir ve daha bir\u00e7ok i\u015flem ger\u00e7ekle\u015ftirebilirsiniz. \u00d6rne\u011fin, bir log dosyas\u0131ndaki giri\u015flerin tarih ve zaman\u0131na g\u00f6re filtreleme, bir rapor olu\u015fturma s\u0131ras\u0131nda tarih ve zaman bilgileri ekleme veya bir otomasyon scriptinde belirli bir tarihte bir i\u015flem ba\u015flatma gibi i\u015flemler i\u00e7in <code class=\"language-\">DateTime<\/code> nesneleri kullanmak \u015fartt\u0131r.  Yanl\u0131\u015f tarih ve zaman i\u015flemleri, scriptlerinizin beklenmedik sonu\u00e7lar \u00fcretmesine veya hatalara yol a\u00e7mas\u0131na neden olabilir.  Bu y\u00fczden bu nesneleri do\u011fru ve verimli kullanmak b\u00fcy\u00fck \u00f6nem ta\u015f\u0131r.<\/p>\n<p><strong>2.  PowerShell&#8217;de DateTime Nesnesi Nas\u0131l Olu\u015fturulur? (Yeni Ba\u015flayanlar \u0130\u00e7in)<\/strong><\/p>\n<p>En basit <code class=\"language-\">DateTime<\/code> nesnesi olu\u015fturma y\u00f6ntemi, <code class=\"language-\">Get-Date<\/code> cmdlet&#8217;ini kullanmakt\u0131r. Bu cmdlet, \u015fu anki tarih ve zaman\u0131 temsil eden bir <code class=\"language-\">DateTime<\/code> nesnesi d\u00f6nd\u00fcr\u00fcr:<\/p>\n<pre class=\"language-powershell\"><code>$now = Get-Date\nWrite-Host &quot;\u015eu anki tarih ve zaman: $($now)&quot;<\/code><\/pre>\n<p>Belirli bir tarih ve zaman belirtmek i\u00e7in ise <code class=\"language-\">[datetime]<\/code> tip d\u00f6n\u00fc\u015ft\u00fcrme operat\u00f6r\u00fcn\u00fc kullanabilirsiniz:<\/p>\n<pre class=\"language-powershell\"><code>$specificDate = [datetime]&quot;2024-10-27 10:30:00&quot;\nWrite-Host &quot;Belirli tarih ve zaman: $($specificDate)&quot;<\/code><\/pre>\n<p>Y\u0131l, ay, g\u00fcn, saat, dakika ve saniye de\u011ferlerini ayr\u0131 ayr\u0131 belirterek de bir <code class=\"language-\">DateTime<\/code> nesnesi olu\u015fturabilirsiniz:<\/p>\n<pre class=\"language-powershell\"><code>$customDate = New-Object DateTime 2023, 12, 25, 14, 0, 0\nWrite-Host &quot;\u00d6zel tarih ve zaman: $($customDate)&quot;<\/code><\/pre>\n<p>Bu \u00f6rneklerde, tarih ve zaman de\u011ferleri farkl\u0131 formatlarda girilebilir ancak tutarl\u0131l\u0131k i\u00e7in ISO 8601 format\u0131 (YYYY-MM-DD HH:mm:ss) \u00f6nerilir.<\/p>\n<p><strong>3. Ger\u00e7ek D\u00fcnya Senaryolar\u0131 ve Optimizasyon \u0130pu\u00e7lar\u0131 (Orta Seviye)<\/strong><\/p>\n<p>Bir dosya sisteminde belirli bir tarih aral\u0131\u011f\u0131nda olu\u015fturulan dosyalar\u0131 bulmak istedi\u011finizi d\u00fc\u015f\u00fcnelim.  Bu i\u015flem i\u00e7in <code class=\"language-\">Get-ChildItem<\/code> cmdlet&#8217;i ile <code class=\"language-\">DateTime<\/code> nesnelerini birlikte kullanabiliriz:<\/p>\n<pre class=\"language-powershell\"><code>$startDate = [datetime]&quot;2023-10-01&quot;\n$endDate = [datetime]&quot;2023-10-31&quot;\n\nGet-ChildItem -Path C:\\ -Recurse | Where-Object {$_.LastWriteTime -ge $startDate -and $_.LastWriteTime -le $endDate}<\/code><\/pre>\n<p>Bu kod, <code class=\"language-\">C:\\<\/code> dizini ve alt dizinlerinde <code class=\"language-\">LastWriteTime<\/code> \u00f6zelli\u011fi <code class=\"language-\">startDate<\/code> ve <code class=\"language-\">endDate<\/code> aras\u0131nda olan t\u00fcm dosyalar\u0131 listeler.  Bu \u00f6rnekte, performans i\u00e7in <code class=\"language-\">Where-Object<\/code> filtrelemesi \u00f6nemlidir.  B\u00fcy\u00fck dizinlerde t\u00fcm dosyalar\u0131 okumak yerine, filtreleme ile sadece ilgili dosyalar\u0131 i\u015fleriz.  Ayr\u0131ca, <code class=\"language-\">Get-ChildItem<\/code>&#8216;\u0131n <code class=\"language-\">-ErrorAction SilentlyContinue<\/code> parametresi ile olas\u0131 hatalar\u0131 bast\u0131rabilir ve scriptin \u00e7al\u0131\u015fmas\u0131n\u0131 engelleyebiliriz.<\/p>\n<p><strong>4.  DateTime Nesneleriyle Geli\u015fmi\u015f \u0130\u015flemler (\u0130leri Seviye)<\/strong><\/p>\n<p><code class=\"language-\">DateTime<\/code> nesneleri \u00fczerinde bir\u00e7ok i\u015flem yapabilirsiniz.  \u00d6rne\u011fin, iki tarih aras\u0131ndaki fark\u0131 hesaplayabilirsiniz:<\/p>\n<pre class=\"language-powershell\"><code>$date1 = [datetime]&quot;2024-01-01&quot;\n$date2 = Get-Date\n\n$difference = New-TimeSpan -Start $date1 -End $date2\nWrite-Host &quot;\u0130ki tarih aras\u0131ndaki fark: $($difference.Days) g\u00fcn&quot;<\/code><\/pre>\n<p>Ayr\u0131ca, <code class=\"language-\">DateTime<\/code> nesnelerinin \u00f6zelliklerini (Y\u0131l, Ay, G\u00fcn, Saat, Dakika, Saniye vb.)  ayr\u0131 ayr\u0131 eri\u015febilir ve de\u011fi\u015ftirebilirsiniz:<\/p>\n<pre class=\"language-powershell\"><code>$date = Get-Date\n$date.Year = 2025\nWrite-Host &quot;Y\u0131l\u0131 de\u011fi\u015ftirilmi\u015f tarih: $($date)&quot;<\/code><\/pre>\n<p><strong>Performans Optimizasyonu:<\/strong>  B\u00fcy\u00fck miktarda <code class=\"language-\">DateTime<\/code> nesnesi \u00fczerinde i\u015flem yap\u0131yorsan\u0131z, performans\u0131 optimize etmek i\u00e7in \u00f6nbellekleme tekniklerini kullanabilirsiniz.  \u00d6rne\u011fin, s\u0131k kullan\u0131lan tarih de\u011ferlerini bir hashtable&#8217;da saklayarak tekrar tekrar <code class=\"language-\">[datetime]<\/code> d\u00f6n\u00fc\u015ft\u00fcrme i\u015flemlerinden ka\u00e7\u0131nabilirsiniz.<\/p>\n<p><strong>5.  S\u0131n\u0131r Durumlar\u0131 (Edge Cases) ve Hata Y\u00f6netimi<\/strong><\/p>\n<p><code class=\"language-\">DateTime<\/code> nesneleri ile \u00e7al\u0131\u015f\u0131rken dikkat edilmesi gereken baz\u0131 s\u0131n\u0131r durumlar\u0131 vard\u0131r. \u00d6rne\u011fin, farkl\u0131 zaman dilimlerini do\u011fru bir \u015fekilde i\u015flemek \u00f6nemlidir.  Yanl\u0131\u015f zaman dilimi ayarlar\u0131, beklenmedik sonu\u00e7lara yol a\u00e7abilir.  Ayr\u0131ca, tarih ve zaman formatlar\u0131n\u0131n do\u011fru bir \u015fekilde belirtilmesi gerekir.  Yanl\u0131\u015f formatlar, hatalara veya istisnalara neden olabilir.  Hata y\u00f6netimi i\u00e7in <code class=\"language-\">try-catch<\/code> bloklar\u0131 kullanarak olas\u0131 hatalar\u0131 yakalayabilir ve scriptinizin beklenmedik \u015fekilde sonlanmas\u0131n\u0131 engelleyebilirsiniz.<\/p>\n<p><strong>6.  Farkl\u0131 Tarih ve Zaman Formatlar\u0131n\u0131 Kullanma<\/strong><\/p>\n<p>PowerShell, tarih ve zamanlar\u0131 farkl\u0131 formatlarda g\u00f6r\u00fcnt\u00fclemenize olanak tan\u0131r.  <code class=\"language-\">ToString()<\/code> metodu ile tarih ve zaman\u0131 istedi\u011finiz formatta bi\u00e7imlendirebilirsiniz:<\/p>\n<pre class=\"language-powershell\"><code>$date = Get-Date\nWrite-Host &quot;K\u0131sa tarih format\u0131: $($date.ToString(&quot;d&quot;))&quot;\nWrite-Host &quot;Uzun tarih format\u0131: $($date.ToString(&quot;D&quot;))&quot;\nWrite-Host &quot;\u00d6zel tarih format\u0131: $($date.ToString(&quot;yyyy-MM-dd HH:mm:ss&quot;))&quot;<\/code><\/pre>\n<p>Daha fazla format se\u00e7ene\u011fi i\u00e7in [MSDN DateTime Format Strings](https:\/\/learn.microsoft.com\/en-us\/dotnet\/standard\/base-types\/custom-date-and-time-format-strings) d\u00f6k\u00fcman\u0131na bakabilirsiniz.<\/p>\n<p><strong>7.  PowerShell&#8217;de DateTime Nesneleri ile \u0130leri D\u00fczey Teknikler<\/strong><\/p>\n<p>PowerShell&#8217;de <code class=\"language-\">DateTime<\/code> nesneleriyle daha karma\u015f\u0131k i\u015flemler yapmak i\u00e7in, .NET framework&#8217;\u00fcn sundu\u011fu di\u011fer s\u0131n\u0131flar\u0131 da kullanabilirsiniz. \u00d6rne\u011fin, <code class=\"language-\">TimeZoneInfo<\/code> s\u0131n\u0131f\u0131 ile farkl\u0131 zaman dilimlerini y\u00f6netebilir, <code class=\"language-\">TimeSpan<\/code> s\u0131n\u0131f\u0131 ile s\u00fcre hesaplamalar\u0131 yapabilirsiniz.  Bu ileri d\u00fczey teknikler, karma\u015f\u0131k tarih ve zaman i\u015flemlerini ger\u00e7ekle\u015ftirmek i\u00e7in gereklidir.<\/p>\n<p><strong>8.  Ger\u00e7ek Hayat \u00d6rne\u011fi: Log Dosyas\u0131 Analizi<\/strong><\/p>\n<p>Bir web sunucusunun log dosyalar\u0131n\u0131 analiz ederek, belirli bir tarih aral\u0131\u011f\u0131nda olu\u015fan hatalar\u0131 tespit etmek istedi\u011finizi varsayal\u0131m.  PowerShell&#8217;de <code class=\"language-\">Get-Content<\/code>, <code class=\"language-\">Where-Object<\/code> ve <code class=\"language-\">Select-String<\/code> cmdlet&#8217;lerini kullanarak bu i\u015flemi ger\u00e7ekle\u015ftirebilirsiniz.  <code class=\"language-\">DateTime<\/code> nesneleri, log dosyas\u0131ndaki tarih ve zaman bilgilerini ay\u0131klamak ve filtrelemek i\u00e7in kullan\u0131labilir.  Bu, sistem y\u00f6neticilerinin sorunlar\u0131 h\u0131zl\u0131 bir \u015fekilde tespit etmelerine ve \u00e7\u00f6zmelerine yard\u0131mc\u0131 olabilir.<\/p>\n<p><strong>Sonu\u00e7<\/strong><\/p>\n<p>Bu makalede, PowerShell&#8217;de <code class=\"language-\">DateTime<\/code> nesnelerini olu\u015fturma, kullanma ve optimize etme konusunda kapsaml\u0131 bir rehber sunduk.  Ba\u015flang\u0131\u00e7 seviyesinden ileri d\u00fczeye kadar farkl\u0131 seviyelerdeki kullan\u0131c\u0131lar i\u00e7in \u00f6rnekler ve a\u00e7\u0131klamalar sa\u011flad\u0131k.  <code class=\"language-\">DateTime<\/code> nesneleri, PowerShell scriptlerinizin g\u00fcc\u00fcn\u00fc ve esnekli\u011fini art\u0131racak \u00f6nemli bir ara\u00e7t\u0131r.  Unutmay\u0131n ki do\u011fru tarih ve zaman i\u015flemleri, scriptlerinizin g\u00fcvenilirli\u011fi ve do\u011frulu\u011fu i\u00e7in kritik \u00f6nem ta\u015f\u0131r.<\/p>\n<p><strong>S\u0131k\u00e7a Sorulan Sorular:<\/strong><\/p>\n<p>1. <strong>PowerShell&#8217;de farkl\u0131 zaman dilimlerini nas\u0131l y\u00f6netirim?<\/strong>  <code class=\"language-\">.NET<\/code>&#8216;in <code class=\"language-\">TimeZoneInfo<\/code> s\u0131n\u0131f\u0131n\u0131 kullanarak farkl\u0131 zaman dilimlerini y\u00f6netebilirsiniz.<br \/>\n2. <strong><code class=\"language-\">DateTime<\/code> nesnelerini nas\u0131l kar\u015f\u0131la\u015ft\u0131rabilirim?<\/strong>  <code class=\"language-\">-ge<\/code> (b\u00fcy\u00fck veya e\u015fit), <code class=\"language-\">-le<\/code> (k\u00fc\u00e7\u00fck veya e\u015fit), <code class=\"language-\">-gt<\/code> (b\u00fcy\u00fck), <code class=\"language-\">-lt<\/code> (k\u00fc\u00e7\u00fck) operat\u00f6rlerini kullanabilirsiniz.<br \/>\n3. <strong>Bir <code class=\"language-\">DateTime<\/code> nesnesinin format\u0131n\u0131 nas\u0131l de\u011fi\u015ftirebilirim?<\/strong>  <code class=\"language-\">ToString()<\/code> metodu ve format string&#8217;leri kullanarak format\u0131 de\u011fi\u015ftirebilirsiniz.<br \/>\n4. <strong><code class=\"language-\">DateTime<\/code> nesnelerinde performans\u0131 nas\u0131l optimize edebilirim?<\/strong>  \u00d6nbellekleme teknikleri ve verimli filtreleme y\u00f6ntemleri kullanarak performans\u0131 art\u0131rabilirsiniz.<br \/>\n5. <strong>Hatalar\u0131 nas\u0131l y\u00f6netirim?<\/strong>  <code class=\"language-\">try-catch<\/code> bloklar\u0131 kullanarak olas\u0131 hatalar\u0131 yakalayabilir ve scriptinizin beklenmedik \u015fekilde sonlanmas\u0131n\u0131 engelleyebilirsiniz.<\/p>\n<p>Yazar: Fatih Soysal<\/p>\n","protected":false},"excerpt":{"rendered":"# PowerShell&#8217;de DateTime Nesnesi Olu\u015fturma: Tam Bir K\u0131lavuz PowerShell&#8217;de tarih ve zaman i\u015flemleri yapmak i\u00e7in olmazsa olmaz olan&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_page_header_type":"","csco_page_load_nextpost":"","csco_page_subscribe_form":"","csco_page_contact_form":"","footnotes":""},"categories":[1319],"tags":[],"class_list":{"0":"post-27717","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-powershell","7":"cs-entry","8":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PowerShell&#039;de DateTime Nesnesi Olu\u015fturma (\u00d6rneklerle)<\/title>\n<meta name=\"description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell&#039;de DateTime Nesnesi Olu\u015fturma (\u00d6rneklerle)\" \/>\n<meta property=\"og:description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-17T21:45:25+00:00\" \/>\n<meta name=\"author\" content=\"Fatih Soysal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fatih Soysal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"PowerShell&#8217;de DateTime Nesnesi Olu\u015fturma (\u00d6rneklerle)\",\"datePublished\":\"2025-08-17T21:45:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/\"},\"wordCount\":1076,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"articleSection\":[\"PowerShell\"],\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/\",\"name\":\"PowerShell'de DateTime Nesnesi Olu\u015fturma (\u00d6rneklerle)\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-08-17T21:45:25+00:00\",\"description\":\"Hi\u00e7bir etiketi bulunamad\u0131.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerShell&#8217;de DateTime Nesnesi Olu\u015fturma (\u00d6rneklerle)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/\",\"name\":\"Fatihsoysal.com\",\"description\":\"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim\",\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\",\"name\":\"Fatih Soysal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"contentUrl\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"width\":512,\"height\":512,\"caption\":\"Fatih Soysal\"},\"logo\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PowerShell'de DateTime Nesnesi Olu\u015fturma (\u00d6rneklerle)","description":"Hi\u00e7bir etiketi bulunamad\u0131.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/","og_locale":"tr_TR","og_type":"article","og_title":"PowerShell'de DateTime Nesnesi Olu\u015fturma (\u00d6rneklerle)","og_description":"Hi\u00e7bir etiketi bulunamad\u0131.","og_url":"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-08-17T21:45:25+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"6 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"PowerShell&#8217;de DateTime Nesnesi Olu\u015fturma (\u00d6rneklerle)","datePublished":"2025-08-17T21:45:25+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/"},"wordCount":1076,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"articleSection":["PowerShell"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/","url":"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/","name":"PowerShell'de DateTime Nesnesi Olu\u015fturma (\u00d6rneklerle)","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-08-17T21:45:25+00:00","description":"Hi\u00e7bir etiketi bulunamad\u0131.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/powershellde-datetime-nesnesi-olusturma-orneklerle\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PowerShell&#8217;de DateTime Nesnesi Olu\u015fturma (\u00d6rneklerle)"}]},{"@type":"WebSite","@id":"https:\/\/fatihsoysal.com\/blog\/#website","url":"https:\/\/fatihsoysal.com\/blog\/","name":"Fatihsoysal.com","description":"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim","publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":["Person","Organization"],"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1","name":"Fatih Soysal","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","contentUrl":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","width":512,"height":512,"caption":"Fatih Soysal"},"logo":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/"},"description":"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.","url":"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/"}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/27717","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/comments?post=27717"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/27717\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=27717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=27717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=27717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}