How to resolve the algorithm Date format step by step in the RED programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Date format step by step in the RED programming language

Table of Contents

Problem Statement

Display the   current date   in the formats of:

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Date format step by step in the RED programming language

Source code in the red programming language

Red []
;; zeropad
f2n: func [d] [ if  d > 9 [return d ]   append copy "0" d  ]

d: now/date

print rejoin [d/year "-" f2n d/month "-" f2n d/day]
print rejoin [system/locale/days/(d/weekday) ", " system/locale/months/(d/month) " " f2n d/day ", " d/year]


  

You may also check:How to resolve the algorithm XML/Output step by step in the J programming language
You may also check:How to resolve the algorithm Matrix digital rain step by step in the Racket programming language
You may also check:How to resolve the algorithm Count in factors step by step in the Scala programming language
You may also check:How to resolve the algorithm Character codes step by step in the Icon and Unicon programming language
You may also check:How to resolve the algorithm Deconvolution/1D step by step in the RPL programming language