You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the ordering actions such as "order" or "sort", or in value comparison operations such as "min" or "max", should the string with date be automatically cast to date for correct comparison?
What is the correct regex that should be used for a string with date recognition?
Example: "1989-01-01" vs new Date("1990-01-01")
What about "/^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(:([0-5][0-9]))?(Z)?$/"
?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the ordering actions such as "order" or "sort", or in value comparison operations such as "min" or "max", should the string with date be automatically cast to date for correct comparison?
What is the correct regex that should be used for a string with date recognition?
Example: "1989-01-01" vs new Date("1990-01-01")
What about
"/^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(:([0-5][0-9]))?(Z)?$/"
?
Beta Was this translation helpful? Give feedback.
All reactions