jwwceo Posted December 20, 2007 Share Posted December 20, 2007 I have an expiration date field in a db that only needs the last 2 numbers of they year. like 07. How would I extract this from '2007'?? James Link to comment https://forums.phpfreaks.com/topic/82426-simple-string-fucntion/ Share on other sites More sharing options...
Jessica Posted December 20, 2007 Share Posted December 20, 2007 substr Link to comment https://forums.phpfreaks.com/topic/82426-simple-string-fucntion/#findComment-419085 Share on other sites More sharing options...
teng84 Posted December 20, 2007 Share Posted December 20, 2007 mysql date_format() might help Link to comment https://forums.phpfreaks.com/topic/82426-simple-string-fucntion/#findComment-419102 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.