java - short regex datetime split -
I am trying to split the following: 2010-07-30 10:10:50
< P> And I would like to end with them only:2010
07
30>
usually just with date ,
P>How can I remove the last part + space?
Thanks a lot!
ps, now i need it but in php then i need to implement it also in java
The answer that has been deleted now works like a magic, / [-] /
It has been run in PHP and probably will be in Java also.
Comments
Post a Comment