Delphi Can
FormatDateTime function - Baskı Önizleme

+- Delphi Can (https://www.delphican.com)
+-- Forum: Delphi (https://www.delphican.com/forumdisplay.php?fid=3)
+--- Forum: Genel Programlama (https://www.delphican.com/forumdisplay.php?fid=6)
+--- Konu Başlığı: FormatDateTime function (/showthread.php?tid=2006)



FormatDateTime function - yhackup - 26-02-2018

Az-Çok demeyelim boş geçmeyelim Smile

  Memo2.Lines.Add('y -> ' + FormatDateTime('y',Now) );
 Memo2.Lines.Add('yy -> ' + FormatDateTime('yy',Now) );
 Memo2.Lines.Add('yyyy -> ' + FormatDateTime('yyyy ',Now) );
 Memo2.Lines.Add('m -> ' + FormatDateTime('m ',Now) );
 Memo2.Lines.Add('mm -> ' + FormatDateTime('mm ',Now) );
 Memo2.Lines.Add('mmm -> ' + FormatDateTime('mmm ',Now) );
 Memo2.Lines.Add('mmmm -> ' + FormatDateTime('mmmmm ',Now) );
 Memo2.Lines.Add('d -> ' + FormatDateTime('d ',Now) );
 Memo2.Lines.Add('dd -> ' + FormatDateTime('dd ',Now) );
 Memo2.Lines.Add('ddd -> ' + FormatDateTime('ddd ',Now) );
 Memo2.Lines.Add('dddd -> ' + FormatDateTime('dddd ',Now) );
 Memo2.Lines.Add('c -> ' + FormatDateTime('c ',Now) );
 Memo2.Lines.Add('h -> ' + FormatDateTime('h ',Now) );
 Memo2.Lines.Add('hh -> ' + FormatDateTime('hh ',Now) );
 Memo2.Lines.Add('n -> ' + FormatDateTime('n ',Now) );
 Memo2.Lines.Add('nn -> ' + FormatDateTime('nn ',Now) );
 Memo2.Lines.Add('s -> ' + FormatDateTime('s ',Now) );
 Memo2.Lines.Add('ss -> ' + FormatDateTime('ss ',Now) );
 Memo2.Lines.Add('z -> ' + FormatDateTime('z ',Now) );
 Memo2.Lines.Add('zzz -> ' + FormatDateTime('zzz ',Now) );
 Memo2.Lines.Add('t -> ' + FormatDateTime('t ',Now) );
 Memo2.Lines.Add('tt -> ' + FormatDateTime('tt ',Now) );
 Memo2.Lines.Add('am/pm -> ' + FormatDateTime('am/pm',Now) );
 Memo2.Lines.Add('a/p -> ' + FormatDateTime('a/p',Now) );
 Memo2.Lines.Add('ampm -> ' + FormatDateTime('ampm',Now) );
 Memo2.Lines.Add('/ -> ' + FormatDateTime('/',Now) );
 Memo2.Lines.Add(': -> ' + FormatDateTime(':',Now) );


y -> 18
yy -> 18
yyyy -> 2018 
m -> 2 
mm -> 02 
mmm -> Şub 
mmmm -> Şubat 
d -> 26 
dd -> 26 
ddd -> Pzt 
dddd -> Pazartesi 
c -> 26.02.2018 14:34:49 
h -> 14 
hh -> 14 
n -> 34 
nn -> 34 
s -> 49 
ss -> 49 
z -> 366 
zzz -> 367 
t -> 14:34 
tt -> 14:34:49 
am/pm -> pm
a/p -> p
ampm -> ÖS
/ -> .
: -> :



Cvp: FormatDateTime function - TescilsizUzman - 26-02-2018

Allah Razı olsun. Allah ne muradın varsa versin. Smile


FormatDateTime function - adelphiforumz - 26-02-2018

Bu arada yeni başlıyanlar için bende küçük bir hatırlatma yapayım
DateUtils kütüphanesinde tarihle ilgili birçok fonksiyon yer alıyor
Bir göz gezdirin isterseniz


FormatDateTime function - yhackup - 26-02-2018

(26-02-2018, Saat: 15:29)adelphiforumz Adlı Kullanıcıdan Alıntı: Bu arada yeni başlıyanlar için bende küçük bir hatırlatma yapayım
DateUtils kütüphanesinde tarihle ilgili birçok fonksiyon yer alıyor
Bir göz gezdirin isterseniz

Evet, ben her yazımda yeni başlayanlara hitap etmek istiyorum.

Haklısınız , o halde o kütüphaneyi de buraya ekleyeyim tarih işlemleri ile ilgili basit bir yazı olsun.