We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Is SimpleDateFormat compatible with P5.JS? I need to convert "YYYY-MM-DD HH:mm:ss" to just a simple "HH". I can't seam to find any instruction on how to set it up. Thanks.
Answers
if it's a fixed input format then you can just use a substring.
SimpleDateFormat is a Java Class; so the nearest equivalent for use with p5js is JavaScript's built-in Date object...
...though as koogs says; depending on your needs a substring might be simpler.
Thanks for the link. I can make this work
The link was fantastic. I was able to get it to work. here is what I wrote: