0

is it possible to specify a date in the JSON structure, like for example in PHP (https://www.php.net/manual/de/function.date.php):

$my_date = date("m.d.Y");

What I mean, here is an example of the JSON file:

{
    "dates_set_1":"test-1",
    "my_date":date("m.d.Y")
}

Is it possible to specify a date like this? And if so, how?

webuser57
  • 171
  • 2
  • 9

1 Answers1

0

Yes you can do it. Like this

date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm