This task has been clarified. Its programming examples are in need of review to ensure that they still fit the requirements of the task.


Task

Display the   current date   in the formats of:

   2007-11-23     and 
   Friday, November 23, 2007


//  time_to_str(format, time, city, lang)
//  format directives:
//    [sun]       - abbreviated weekday, e.g. Sun
//    [sunday]    - full weekday name, e.g. Sunday
//    [jan]       - abbrev month
//    [january]   - full month
//    [day]       - day of the month 1, 2, ..31
//    [day2]      - day of the month as two digits 01, 02, ..31
//    [hour]      - hour 00, 01, 03..23
//    [hour12]    - hour 1..12
//    [julian]    - day of the year 1..366
//    [month]     - month 1..12
//    [month2]    - month as two digits 01, 02, ..12
//    [minute]    - Minute 00, 01, 02..59
//    [am]        - AM or PM 
//    [sec]       - second 00, 01, 02..61
//    [msec]      - millisecond 000...999
//    [week sun]  - week number of the year, sunday based (ranges 01-53, per ISO spec)
//    [week mon]  - week number of the year, monday based
//    [year]      - year with century 2024
//    [year2]     - year without century 00, 01, ..99
//    [date]      - default date format (e.g. Jan 14, 2015  )
//    [date time] -  (e.g. Jan 14, 2015 3:45 PM)
//    [iso date]  = [year]-[month2]-[day2], e.g. 2015-02-22 
//    [iso time]  = [hour]:[minute]:[second], e.g. 18:06:05
