Guest User

AdvancedStatusTime date format cheat sheet

a guest
May 23rd, 2017
8,903
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AdvancedStatusTime date format cheat sheet
  2.  
  3.  
  4. G = Era. Ex: "AD"
  5.  
  6. y = Year. Ex: "2017"
  7.  
  8. Q = Quarter. Ex: "02" (Half way through the year)
  9. QQQ = Quarter. Ex: "Q2" (Half way through the year)
  10.  
  11. M = Month. Ex: "9"
  12. MMM = Month. Ex: "Sept" (Abbreviation of the month)
  13. MMMMM = Month. Ex: "S" (First letter of the month)
  14.  
  15. w = Week of the year. Ex: "27" (27 is the final week of the year)
  16. W = Week of the month. Ex: "3" (3 is the last week of the month)
  17.  
  18. d = Day. Ex: "5" (The day of the month)
  19. D = Day. Ex: "324" (The day of the year)
  20.  
  21. E = Weekday. Ex: "Tues" (The short string of the weekday)
  22. EEEE = Weekday. Ex: "Tuesday" (The full string of the weekday)
  23.  
  24. a = AM/PM. Ex: "AM" (Places AM or PM depending on the time)
  25.  
  26. h = Hour. Ex: "1" (Hours in 12 hour format, single number)
  27. hh = Hour. Ex: "01" (Hours in 12 hour format, double number)
  28. H = Hour. Ex: "0" (Hours in 24 hour format, single number)
  29. HH = Hour. Ex: "00" (Hours in 24 hour format, double number)
  30.  
  31. m = Minute. Ex: "5" (Minutes. Single number)
  32. mm = Minute. Ex: "05" (Minutes. Double number)
  33.  
  34. s = Second. Ex: "4" (Second. Single number)
  35. ss = Second. Ex: "04" (Second. Double number)
  36.  
  37. z = Timezone. Ex: "CDT"
  38. zzzz = Timezone. Ex: "Central Daylight Time"
  39.  
  40.  
  41. Example usage:
  42.  
  43. "M/d/y (E) | h:mm:ss a z" would print "5/23/2017 (Tue) | 8:23:17 PM CDT", in relation to your time, obviously.
RAW Paste Data