{"id":26736,"date":"2025-07-30T09:45:38","date_gmt":"2025-07-30T06:45:38","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/"},"modified":"2025-07-30T09:45:38","modified_gmt":"2025-07-30T06:45:38","slug":"how-to-get-day-of-week-in-powershell-with-examples-ceviri","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/","title":{"rendered":"How to Get Day of Week in PowerShell (With Examples) (\u00c7eviri)"},"content":{"rendered":"<p># PowerShell&#8217;de Haftan\u0131n G\u00fcn\u00fcn\u00fc Bulma: Ad\u0131m Ad\u0131m Rehber<\/p>\n<p><strong>Meta A\u00e7\u0131klamas\u0131:<\/strong> PowerShell ile haftan\u0131n g\u00fcn\u00fcn\u00fc nas\u0131l belirleyece\u011finizi \u00f6\u011frenmek ister misiniz? Bu kapsaml\u0131 rehber, yeni ba\u015flayanlardan uzmanlara kadar herkes i\u00e7in ad\u0131m ad\u0131m a\u00e7\u0131klamalar, ger\u00e7ek d\u00fcnya \u00f6rnekleri ve performans optimizasyon ipu\u00e7lar\u0131 sunuyor.  Tarihlerle \u00e7al\u0131\u015f\u0131rken PowerShell&#8217;in g\u00fcc\u00fcnden faydalan\u0131n!<\/p>\n<p>G\u00fcnl\u00fck i\u015flerinizde veya otomasyon projelerinizde belirli bir tarihin haftan\u0131n hangi g\u00fcn\u00fcne denk geldi\u011fini bilmeniz mi gerekiyor?  \u00d6rne\u011fin, bir raporun her Pazartesi sabah\u0131 otomatik olarak olu\u015fturulmas\u0131n\u0131 sa\u011flamak veya bir dosyan\u0131n belirli bir g\u00fcn i\u00e7inde i\u015flenmesini planlamak isteyebilirsiniz.  \u0130\u015fte tam bu noktada PowerShell&#8217;in g\u00fcc\u00fc devreye giriyor. Bu makale, PowerShell&#8217;de haftan\u0131n g\u00fcn\u00fcn\u00fc bulman\u0131n \u00e7e\u015fitli y\u00f6ntemlerini, ad\u0131m ad\u0131m a\u00e7\u0131klamalar\u0131 ve ger\u00e7ek d\u00fcnya \u00f6rneklerini ele alarak, bu g\u00f6revi kolayca nas\u0131l ba\u015farabilece\u011finizi g\u00f6sterecektir.<\/p>\n<p><strong>1. Temel Kavramlar: Tarih ve Zaman \u0130\u015fleme PowerShell&#8217;de<\/strong><\/p>\n<p>PowerShell, tarih ve zaman verilerini i\u015flemek i\u00e7in g\u00fc\u00e7l\u00fc ara\u00e7lar sunar.  <code class=\"language-\">Get-Date<\/code> cmdlet&#8217;i, mevcut tarih ve saati al\u0131rken,  <code class=\"language-\">[datetime]<\/code> veri tipi tarih ve zaman nesneleriyle \u00e7al\u0131\u015fmam\u0131z\u0131 sa\u011flar.  Bu nesneler \u00fczerinde \u00e7e\u015fitli \u00f6zellikler (Properties) ve metodlar (Methods) kullanarak, tarih ve zamana ili\u015fkin bir\u00e7ok bilgiye eri\u015febilir ve manip\u00fclasyonlar yapabiliriz. \u00d6rne\u011fin, <code class=\"language-\">DayOfWeek<\/code> \u00f6zelli\u011fi, bir tarih nesnesinin haftan\u0131n hangi g\u00fcn\u00fcne denk geldi\u011fini belirtir.  Ancak, bu \u00f6zelli\u011fin \u00e7\u0131kt\u0131s\u0131 bir <code class=\"language-\">System.DayOfWeek<\/code> enum de\u011feridir (\u00f6rne\u011fin, <code class=\"language-\">Monday<\/code>, <code class=\"language-\">Tuesday<\/code>, vb.), bu nedenle daha okunabilir bir \u00e7\u0131kt\u0131 elde etmek i\u00e7in ek i\u015flemler gerekebilir.<\/p>\n<p><strong>2. Haftan\u0131n G\u00fcn\u00fcn\u00fc Bulma: Yeni Ba\u015flayanlar \u0130\u00e7in Ad\u0131m Ad\u0131m K\u0131lavuz<\/strong><\/p>\n<p><strong>\u00d6\u011frenme Yol Haritas\u0131:<\/strong>  Yeni Ba\u015flayan \u2192 Orta \u2192 \u0130leri D\u00fczey<\/p>\n<p><strong>Yeni Ba\u015flayan:<\/strong><\/p>\n<p>Bir tarihin haftan\u0131n hangi g\u00fcn\u00fcne denk geldi\u011fini bulman\u0131n en basit yolu <code class=\"language-\">Get-Date<\/code> cmdlet&#8217;ini ve <code class=\"language-\">DayOfWeek<\/code> \u00f6zelli\u011fini kullanmakt\u0131r.  A\u015fa\u011f\u0131daki komut, bug\u00fcn\u00fcn haftan\u0131n hangi g\u00fcn\u00fc oldu\u011funu g\u00f6sterir:<\/p>\n<pre class=\"language-powershell\"><code>(Get-Date).DayOfWeek<\/code><\/pre>\n<p>Bu komut, <code class=\"language-\">Monday<\/code>, <code class=\"language-\">Tuesday<\/code>, &#8230; gibi bir enum de\u011feri d\u00f6nd\u00fcr\u00fcr.  Bu de\u011feri daha okunabilir bir \u015fekilde g\u00f6r\u00fcnt\u00fclemek i\u00e7in a\u015fa\u011f\u0131daki gibi bir y\u00f6ntem kullanabiliriz:<\/p>\n<pre class=\"language-powershell\"><code>$dayOfWeek = (Get-Date).DayOfWeek\nswitch ($dayOfWeek) {\n    {$_ -eq &quot;Monday&quot;}    {Write-Host &quot;Bug\u00fcn Pazartesi&quot;}\n    {$_ -eq &quot;Tuesday&quot;}   {Write-Host &quot;Bug\u00fcn Sal\u0131&quot;}\n    {$_ -eq &quot;Wednesday&quot;} {Write-Host &quot;Bug\u00fcn \u00c7ar\u015famba&quot;}\n    {$_ -eq &quot;Thursday&quot;}  {Write-Host &quot;Bug\u00fcn Per\u015fembe&quot;}\n    {$_ -eq &quot;Friday&quot;}    {Write-Host &quot;Bug\u00fcn Cuma&quot;}\n    {$_ -eq &quot;Saturday&quot;}  {Write-Host &quot;Bug\u00fcn Cumartesi&quot;}\n    {$_ -eq &quot;Sunday&quot;}    {Write-Host &quot;Bug\u00fcn Pazar&quot;}\n}<\/code><\/pre>\n<p>Bu \u00f6rnekte, <code class=\"language-\">switch<\/code> deyimi ile <code class=\"language-\">DayOfWeek<\/code> de\u011ferine g\u00f6re farkl\u0131 mesajlar yazd\u0131r\u0131yoruz.  Bu basit y\u00f6ntem, yeni ba\u015flayanlar i\u00e7in haftan\u0131n g\u00fcn\u00fcn\u00fc belirlemenin anla\u015f\u0131l\u0131r bir yoludur.  Belirli bir tarih i\u00e7in haftan\u0131n g\u00fcn\u00fcn\u00fc bulmak i\u00e7in <code class=\"language-\">Get-Date<\/code>&#8216;e tarih bilgisini sa\u011flaman\u0131z yeterlidir:<\/p>\n<pre class=\"language-powershell\"><code>(Get-Date &quot;2024-03-15&quot;).DayOfWeek<\/code><\/pre>\n<p><strong>3. Ger\u00e7ek D\u00fcnya \u00d6rne\u011fi: Rapor Olu\u015fturma Otomasyonu<\/strong><\/p>\n<p><strong>Orta Seviye:<\/strong><\/p>\n<p>\u015eimdi, ger\u00e7ek d\u00fcnya senaryolar\u0131ndan birini ele alal\u0131m: Her Pazartesi sabah\u0131 otomatik bir rapor olu\u015fturma.  A\u015fa\u011f\u0131daki kod, bug\u00fcn\u00fcn Pazartesi olup olmad\u0131\u011f\u0131n\u0131 kontrol eder ve e\u011fer \u00f6yleyse bir rapor olu\u015fturma i\u015flemini sim\u00fcle eder:<\/p>\n<pre class=\"language-powershell\"><code>$today = Get-Date\nif ($today.DayOfWeek -eq &quot;Monday&quot;) {\n    Write-Host &quot;Bug\u00fcn Pazartesi. Rapor olu\u015fturuluyor...&quot;\n    # Burada rapor olu\u015fturma i\u015flemleri yer alacak. \u00d6rne\u011fin:\n    # Export-Csv -Path &quot;C:\\rapor.csv&quot; -InputObject $data\n} else {\n    Write-Host &quot;Bug\u00fcn Pazartesi de\u011fil.&quot;\n}<\/code><\/pre>\n<p>Bu \u00f6rnekte, <code class=\"language-\">if<\/code> deyimi ile haftan\u0131n g\u00fcn\u00fcn\u00fc kontrol ederek ko\u015fullu bir i\u015flem ger\u00e7ekle\u015ftiriyoruz.  <code class=\"language-\">Export-Csv<\/code> cmdlet&#8217;i, rapor verilerini CSV dosyas\u0131na kaydetmek i\u00e7in kullan\u0131labilecek bir \u00f6rnektir.  Bu kod, daha geli\u015fmi\u015f otomasyon senaryolar\u0131na temel olu\u015fturabilir.  Ayr\u0131ca, <code class=\"language-\">Get-Date<\/code>&#8216;in farkl\u0131 formatlarda tarih kabul edebildi\u011fini unutmay\u0131n.  \u00d6rne\u011fin, &#8220;15\/03\/2024&#8221;, &#8220;15-03-2024&#8221; veya &#8220;March 15, 2024&#8221; gibi formatlar da kullan\u0131labilir, ancak k\u00fclt\u00fcr ayarlar\u0131n\u0131za ba\u011fl\u0131 olarak farkl\u0131 sonu\u00e7lar verebilir. Bu nedenle, k\u00fclt\u00fcre duyarl\u0131 olmayan bir format kullanmak genellikle daha g\u00fcvenlidir (\u00f6rne\u011fin, YYYY-MM-DD).<\/p>\n<p><strong>4. Performans Optimizasyonu ve \u0130leri Teknikler<\/strong><\/p>\n<p><strong>\u0130leri D\u00fczey:<\/strong><\/p>\n<p>B\u00fcy\u00fck veri k\u00fcmeleriyle \u00e7al\u0131\u015f\u0131rken, performans optimizasyonu \u00f6nemli hale gelir.  Her bir tarih i\u00e7in <code class=\"language-\">Get-Date<\/code>&#8216;i tekrar tekrar \u00e7a\u011f\u0131rmak yerine, tarihleri \u00f6nceden i\u015fleyip bir dizi olu\u015fturmak daha verimli olabilir. \u00d6rne\u011fin, bir y\u0131l i\u00e7indeki t\u00fcm Pazartesi g\u00fcnlerini bulmak i\u00e7in:<\/p>\n<pre class=\"language-powershell\"><code>$startDate = Get-Date &quot;2024-01-01&quot;\n$endDate = Get-Date &quot;2024-12-31&quot;\n$mondays = foreach ($date in ($startDate..$endDate)) {\n    if ($date.DayOfWeek -eq &quot;Monday&quot;) {\n        $date\n    }\n}\n$mondays | Format-Table -AutoSize<\/code><\/pre>\n<p>Bu kod, ba\u015flang\u0131\u00e7 ve biti\u015f tarihleri aras\u0131nda t\u00fcm tarihleri iterecek ve Pazartesi g\u00fcnlerini filtreleyerek bir dizi olu\u015fturacakt\u0131r.  Bu, tek tek tarihler i\u00e7in <code class=\"language-\">Get-Date<\/code>&#8216;i \u00e7a\u011f\u0131rmaktan daha verimlidir.<\/p>\n<p><strong>Edge Case&#8217;ler:<\/strong><\/p>\n<p>K\u00fclt\u00fcr ayarlar\u0131, tarih formatlar\u0131n\u0131n yorumlanmas\u0131n\u0131 etkileyebilir.  Dolay\u0131s\u0131yla, her zaman tutarl\u0131 ve k\u00fclt\u00fcre ba\u011f\u0131ms\u0131z bir tarih format\u0131 (YYYY-MM-DD) kullanmak \u00f6nemlidir.  Ayr\u0131ca, zaman dilimlerinin de dikkate al\u0131nmas\u0131 gerekebilir.  Uluslararas\u0131 uygulamalar i\u00e7in, zaman dilimlerinin do\u011fru bir \u015fekilde y\u00f6netilmesi performans ve do\u011fruluk a\u00e7\u0131s\u0131ndan kritiktir.  <code class=\"language-\">Get-Date<\/code> cmdlet&#8217;i, zaman dilimi bilgilerini i\u00e7eren tarih nesneleri olu\u015fturur, ancak bu bilgileri a\u00e7\u0131k\u00e7a belirtmek ve i\u015flemek daha g\u00fcvenlidir.<\/p>\n<p><strong>5.  Haftan\u0131n G\u00fcn\u00fcn\u00fc Say\u0131sal Olarak Temsil Etme<\/strong><\/p>\n<p>PowerShell&#8217;de haftan\u0131n g\u00fcn\u00fcn\u00fc say\u0131sal olarak temsil etmek i\u00e7in <code class=\"language-\">.DayofWeek<\/code> \u00f6zelli\u011fini kullanabiliriz, ancak bu \u00f6zellik 0 (Pazar) ile 6 (Cumartesi) aras\u0131nda bir tam say\u0131 d\u00f6nd\u00fcr\u00fcr.  Bu say\u0131sal g\u00f6sterimi kullanarak daha karma\u015f\u0131k hesaplamalar yapabilirsiniz. \u00d6rne\u011fin, belirli bir tarihten itibaren 7 g\u00fcn sonraki tarihin haftan\u0131n hangi g\u00fcn\u00fc oldu\u011funu bulmak i\u00e7in:<\/p>\n<pre class=\"language-powershell\"><code>$tarih = Get-Date &quot;2024-03-15&quot;\n$yeniTarih = $tarih.AddDays(7)\n$yeniTarih.DayOfWeek<\/code><\/pre>\n<p>Bu kod, 7 g\u00fcn sonraki tarihin haftan\u0131n g\u00fcn\u00fcn\u00fc d\u00f6nd\u00fcr\u00fcr.  Say\u0131sal g\u00f6sterimi kullanarak, haftan\u0131n g\u00fcnleri aras\u0131nda kolayca ge\u00e7i\u015f yapabilir ve daha esnek hesaplamalar ger\u00e7ekle\u015ftirebilirsiniz.<\/p>\n<p><strong>6.  PowerShell&#8217;de Tarih \u0130\u015flemlerini Geli\u015ftirme<\/strong><\/p>\n<p>Daha karma\u015f\u0131k tarih i\u015flemleri i\u00e7in,  <code class=\"language-\">.AddDays()<\/code>, <code class=\"language-\">.AddMonths()<\/code>, <code class=\"language-\">.AddYears()<\/code> gibi metodlar\u0131 kullanabilirsiniz.  Bu metodlar, belirli bir tarih objesine g\u00fcn, ay veya y\u0131l eklemenizi sa\u011flar.  \u00d6rne\u011fin, bir tarihten 3 ay sonraki tarihi bulmak i\u00e7in:<\/p>\n<pre class=\"language-powershell\"><code>$tarih = Get-Date &quot;2024-03-15&quot;\n$yeniTarih = $tarih.AddMonths(3)\n$yeniTarih<\/code><\/pre>\n<p>Bu, tarih i\u015flemlerini daha da geli\u015ftirmenize ve daha karma\u015f\u0131k otomasyon senaryolar\u0131 olu\u015fturman\u0131za olanak tan\u0131r.<\/p>\n<p><strong>7.  Fonksiyonlar Kullanarak Kod Okunabilirli\u011fini Art\u0131rma<\/strong><\/p>\n<p>Kodun okunabilirli\u011fini ve tekrar kullan\u0131labilirli\u011fini art\u0131rmak i\u00e7in, haftan\u0131n g\u00fcn\u00fcn\u00fc bulan bir fonksiyon olu\u015fturabilirsiniz:<\/p>\n<pre class=\"language-powershell\"><code>function Get-DayOfWeek {\n    param(\n        [datetime]$Date\n    )\n    $Date.DayOfWeek\n}\n\nGet-DayOfWeek -Date &quot;2024-03-15&quot;<\/code><\/pre>\n<p>Bu fonksiyon, belirli bir tarih i\u00e7in haftan\u0131n g\u00fcn\u00fcn\u00fc d\u00f6nd\u00fcr\u00fcr.  Bu, kodun daha d\u00fczenli ve anla\u015f\u0131l\u0131r olmas\u0131n\u0131 sa\u011flar.<\/p>\n<p><strong>8.  Hata Y\u00f6netimi ve G\u00fcvenlik<\/strong><\/p>\n<p>Ger\u00e7ek d\u00fcnya senaryolar\u0131nda, olas\u0131 hatalar\u0131 ve g\u00fcvenlik risklerini ele almak \u00f6nemlidir.  \u00d6rne\u011fin, kullan\u0131c\u0131 taraf\u0131ndan girilen tarihin ge\u00e7erli olup olmad\u0131\u011f\u0131n\u0131 kontrol etmeli ve hatal\u0131 giri\u015fler i\u00e7in uygun hata mesajlar\u0131 vermeliyiz.  Ayr\u0131ca, dosya i\u015flemleri gibi hassas i\u015flemler i\u00e7in g\u00fcvenlik \u00f6nlemleri almal\u0131y\u0131z.  \u00d6rne\u011fin, rapor olu\u015fturma i\u015flemi i\u00e7in dosya yazma izinlerinin do\u011fru \u015fekilde ayarland\u0131\u011f\u0131ndan emin olmal\u0131y\u0131z.<\/p>\n<p><strong>9. Sonu\u00e7<\/strong><\/p>\n<p>PowerShell, tarih ve zaman i\u015flemleri i\u00e7in g\u00fc\u00e7l\u00fc ve esnek ara\u00e7lar sunar.  <code class=\"language-\">Get-Date<\/code> cmdlet&#8217;i ve <code class=\"language-\">DayOfWeek<\/code> \u00f6zelli\u011fi, haftan\u0131n g\u00fcn\u00fcn\u00fc belirlemenin temelini olu\u015fturur.  Bu makalede ele ald\u0131\u011f\u0131m\u0131z y\u00f6ntemler ve \u00f6rnekler, yeni ba\u015flayanlardan ileri d\u00fczey kullan\u0131c\u0131lara kadar herkesin PowerShell&#8217;de tarih i\u015flemlerini daha etkili bir \u015fekilde kullanmas\u0131na yard\u0131mc\u0131 olacakt\u0131r.  Unutmay\u0131n ki, performans optimizasyonu ve hata y\u00f6netimi, ger\u00e7ek d\u00fcnya uygulamalar\u0131nda kritik \u00f6neme sahiptir.<\/p>\n<p><strong>S\u0131k\u00e7a Sorulan Sorular (SSS)<\/strong><\/p>\n<p>1. <strong>PowerShell&#8217;de farkl\u0131 tarih formatlar\u0131n\u0131 nas\u0131l kullanabilirim?<\/strong>  <code class=\"language-\">Get-Date<\/code> cmdlet&#8217;i \u00e7e\u015fitli tarih formatlar\u0131n\u0131 kabul eder.  Ancak, k\u00fclt\u00fcre ba\u011f\u0131ml\u0131 olmayan bir format (YYYY-MM-DD) kullanmak genellikle daha g\u00fcvenlidir.<\/p>\n<p>2. <strong>Zaman dilimlerini nas\u0131l y\u00f6netebilirim?<\/strong>  <code class=\"language-\">Get-Date<\/code> cmdlet&#8217;i zaman dilimi bilgilerini i\u00e7erir, ancak a\u00e7\u0131k\u00e7a belirtmek ve i\u015flemek daha g\u00fcvenlidir.  <code class=\"language-\">[datetime]::SpecifyKind()<\/code> metodunu kullanarak zaman dilimi bilgisini belirleyebilirsiniz.<\/p>\n<p>3. <strong>Haftan\u0131n g\u00fcn\u00fcn\u00fc say\u0131sal olarak nas\u0131l temsil ederim?<\/strong> <code class=\"language-\">.DayOfWeek<\/code> \u00f6zelli\u011fi 0 (Pazar) ile 6 (Cumartesi) aras\u0131nda bir tam say\u0131 d\u00f6nd\u00fcr\u00fcr.<\/p>\n<p>4. <strong>B\u00fcy\u00fck veri k\u00fcmeleriyle \u00e7al\u0131\u015f\u0131rken performans\u0131 nas\u0131l optimize edebilirim?<\/strong>  Tarihleri \u00f6nceden i\u015fleyip bir dizi olu\u015fturmak, her bir tarih i\u00e7in <code class=\"language-\">Get-Date<\/code>&#8216;i tekrar tekrar \u00e7a\u011f\u0131rmaktan daha verimlidir.<\/p>\n<p>5. <strong>Hata y\u00f6netimi ve g\u00fcvenlik nas\u0131l sa\u011flan\u0131r?<\/strong>  Kullan\u0131c\u0131 giri\u015flerini do\u011frulamak, olas\u0131 hatalar\u0131 yakalamak ve dosya i\u015flemleri gibi hassas i\u015flemler i\u00e7in g\u00fcvenlik \u00f6nlemleri almak \u00f6nemlidir.<\/p>\n<p>Yazar: Fatih Soysal<\/p>\n","protected":false},"excerpt":{"rendered":"# PowerShell&#8217;de Haftan\u0131n G\u00fcn\u00fcn\u00fc Bulma: Ad\u0131m Ad\u0131m Rehber Meta A\u00e7\u0131klamas\u0131: PowerShell ile haftan\u0131n g\u00fcn\u00fcn\u00fc nas\u0131l belirleyece\u011finizi \u00f6\u011frenmek ister&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-26736","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>How to Get Day of Week in PowerShell (With Examples) (\u00c7eviri)<\/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\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Get Day of Week in PowerShell (With Examples) (\u00c7eviri)\" \/>\n<meta property=\"og:description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-30T06:45:38+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=\"8 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"How to Get Day of Week in PowerShell (With Examples) (\u00c7eviri)\",\"datePublished\":\"2025-07-30T06:45:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/\"},\"wordCount\":1322,\"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\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/\",\"name\":\"How to Get Day of Week in PowerShell (With Examples) (\u00c7eviri)\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-07-30T06:45:38+00:00\",\"description\":\"Hi\u00e7bir etiketi bulunamad\u0131.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Get Day of Week in PowerShell (With Examples) (\u00c7eviri)\"}]},{\"@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":"How to Get Day of Week in PowerShell (With Examples) (\u00c7eviri)","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\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/","og_locale":"tr_TR","og_type":"article","og_title":"How to Get Day of Week in PowerShell (With Examples) (\u00c7eviri)","og_description":"Hi\u00e7bir etiketi bulunamad\u0131.","og_url":"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-07-30T06:45:38+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"8 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"How to Get Day of Week in PowerShell (With Examples) (\u00c7eviri)","datePublished":"2025-07-30T06:45:38+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/"},"wordCount":1322,"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\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/","url":"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/","name":"How to Get Day of Week in PowerShell (With Examples) (\u00c7eviri)","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-07-30T06:45:38+00:00","description":"Hi\u00e7bir etiketi bulunamad\u0131.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/how-to-get-day-of-week-in-powershell-with-examples-ceviri\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Get Day of Week in PowerShell (With Examples) (\u00c7eviri)"}]},{"@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\/26736","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=26736"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/26736\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=26736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=26736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=26736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}